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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to