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

How do I validate params? #2457

Closed
dimaip opened this issue Nov 3, 2015 · 2 comments
Closed

How do I validate params? #2457

dimaip opened this issue Nov 3, 2015 · 2 comments

Comments

@dimaip
Copy link

dimaip commented Nov 3, 2015

I have a language segment as a first segment of my url, defined as:

<Route path='/:lang' ... >

Now how do I validate that lang param may only be equal to en or ru, and throw 404 otherwise?

My question is related to #357 I guess.

@knowbody
Copy link
Contributor

knowbody commented Nov 3, 2015

For questions and support, please visit our channel on Reactiflux or Stack Overflow. The issue tracker is exclusively for bug reports and feature requests.

@knowbody knowbody closed this as completed Nov 3, 2015
@itajaja
Copy link

itajaja commented Nov 3, 2015

You may want to follow #2286

@remix-run remix-run deleted a comment from adam-rocska Sep 8, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants