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
We want to do this so that urlFor() can be used outside of the context of the app it's used in.
Create a middleware to expose /routes.json, which is just an array of { "route name": "path" }
Enforce a concept of public/private routes. Probably just a private: true flag, and possibly a configurable global default
Figure out a good way to consume routes.json. Best way is to probably consume and cache the json in app.js on bootstrap. What if we need to support multiple sets of routes, like both www and admin routes?
The text was updated successfully, but these errors were encountered:
We want to do this so that
urlFor()
can be used outside of the context of the app it's used in./routes.json
, which is just an array of{ "route name": "path" }
private: true
flag, and possibly a configurable global defaultroutes.json
. Best way is to probably consume and cache the json inapp.js
on bootstrap. What if we need to support multiple sets of routes, like both www and admin routes?The text was updated successfully, but these errors were encountered: