-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to return arbitrary result? #133
Comments
Please, show your |
It simply returns a string function foo_method()
return 'callback({"foo": "bar"})'
end |
And what do you expect? |
I'm expecting
Thanks, but i was hoping to do it without lua on nginx. |
I agree that it is not convenient to add extra logic on nginx side just to implement an API you need. AFAIU the module was initially made with RPC in a mind, that is why we need to preprocess-postprocess a request and a response to implement, say, restful API. However it would be good to change it in the future. |
Hope we should not close the issue, but rather add an option that will do something like the Lua code that I linked above. |
Thanks a lot for the module!
I want to wrap json object into callback:
I don't know how to do that. I've tried to return result as simple string from tarantool with following nginx config:
But module returns it wrapped into double quotes
The text was updated successfully, but these errors were encountered: