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

redirects #1

Open
samccone opened this issue Oct 3, 2014 · 0 comments
Open

redirects #1

samccone opened this issue Oct 3, 2014 · 0 comments

Comments

@samccone
Copy link

samccone commented Oct 3, 2014

Here is the "code" spec that I have in my head for this

redirects: {
  "foo": "bar",
  "bar/*": toRediect
}
function toRedirect(route) {
   if(something) {
      return "new/route";
   }

   // no redirect if false is returned
   return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant