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

Specify a default route to handle unmatched routes #49

Open
jakewhiteley opened this issue Jun 6, 2015 · 1 comment
Open

Specify a default route to handle unmatched routes #49

jakewhiteley opened this issue Jun 6, 2015 · 1 comment
Milestone

Comments

@jakewhiteley
Copy link

There is currently no way to specify what happens on an unmatched route.

I propose a user should be able to set this as part of view.options as follows:

App.View('404', {
    options: {
        defaultRoute: true
    }
}

This will allow a application to specify it's 404 view, or pass a bad request to the home page for example.

@astoilkov astoilkov added this to the 0.4.0 milestone Jun 7, 2015
@astoilkov
Copy link
Owner

This is a must. I have added as a feature for the upcoming 0.4.0 release.

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

2 participants