Replies: 1 comment 6 replies
-
According to the docs, the render method does not return anything, it just sends the response internally. The problem with this is that routing-controllers will try to return whatever your controller returns, resulting in a 'double response'. However, if you return the response object itself, routing-controller will not try to do any additional response writing. Please try response.render(...);
return response; |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have a route which create a model. If checks succeeds and the model could be saved to the database, I want to render a template.
If it fails, I want it to render a different template.
Like so:
I have tried
response.render(...) return;
. but also directreturn response render(...)
.Getting error
Beta Was this translation helpful? Give feedback.
All reactions