Skip to content
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

Expose route name -> path map #2

Open
3 tasks
thatmarvin opened this issue Jun 5, 2013 · 0 comments
Open
3 tasks

Expose route name -> path map #2

thatmarvin opened this issue Jun 5, 2013 · 0 comments

Comments

@thatmarvin
Copy link
Owner

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant