Hi,

What is the URL you are using to trigger the controller?



On 21 January 2016 at 15:23, Hao <[email protected]> wrote:

> The code under is OK. But once I removed the third parameter in the
> index('POST', [], Tok) and make it a function itself (index('POST', [])),
> Boss will error out: [error] Error in controller error:function_clause
>
> -module(hillwave_quotes_controller, [Req, SessionId]).
> -compile(export_all).
> before_(_,_,_) ->
>   {ok, "token"}.
> index('POST', [], Tok) ->
>   {json, []};
> index('GET', [], Tok) ->
>   ?DEBUG("~p", Tok),
>
> Hao
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/731a82d1.fc8f.152634870df.Coremail.jusfeel%40163.com
> <https://groups.google.com/d/msgid/chicagoboss/731a82d1.fc8f.152634870df.Coremail.jusfeel%40163.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CAKF5fiAsWeWu6wsAQrN33biT%2BNT%3DaFGdFqT_sthGB1uj_u7rjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to