You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zappa Docs say that you can do @ get, post, put, del in browser-side code (section "CLIENT-SIDE ROOT SCOPE"). Looking around the docs, and then at the source (0.3.1), I see zappa is exposing Sammy's routing functionality to do so.
Only @ get is being exposed though, so:
For the "has no method 'exec" error, it is because of the non-adaptive api interface between zappa and sammy.
zappa use object literals to passing params, while sammy use normal function param-passing.
Carefully read the code below and compare with sammy api https://github.com/mauricemach/zappa/blob/master/src/client.coffee#L17
But I do not understand the rationale why zappa keep a limited use of sammy apis.
Zappa Docs say that you can do @ get, post, put, del in browser-side code (section "CLIENT-SIDE ROOT SCOPE"). Looking around the docs, and then at the source (0.3.1), I see zappa is exposing Sammy's routing functionality to do so.
Only @ get is being exposed though, so:
@ post will throw an error as soon as it is read: "Uncaught TypeError: Object # has no method 'post'"
I tried doing:
but that ends up causing 'has no method 'exec'' in the sammy.js code.
The text was updated successfully, but these errors were encountered: