Replies: 1 comment 1 reply
-
Hey there, Did you try to reload the code without anonymous function? Does it really work without reloading the system? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been waiting for this for long so thanks a lot!
One little thing I've noticed - you are wrapping
routes/routes
in an anonymous function.I just used
routes/routes
as is:Is there any difference in that? Will my code be less reloadable when using this approach?
It also was not obvious me, that you can simply use a function returning routes instead of actual data structure representing the routes.
I skimmed through http://pedestal.io/guides/defining-routes and http://pedestal.io/reference/index#_routing_and_linking but couldn't didn't find any mention of that.
Beta Was this translation helpful? Give feedback.
All reactions