Replies: 1 comment 5 replies
-
Only one route will match the request. Unlike other frameworks, mojo.js does not execute all matching routes, only the first one. And code is only executed when the full path matches, including nested routes. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I want to implement the following feature in the backend using
mojojs
. I want the routes to be executed from top to bottom and have a helper function to determine logged-in routes.I have a problem with
app.under
and how I've used it, and now the 2nd route gets executed before the first one.I managed to use the router and requires to fix the problem, but now I have another issue in which the request is still trying to get picked up by all the next routes.
Beta Was this translation helpful? Give feedback.
All reactions