-
Notifications
You must be signed in to change notification settings - Fork 22
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
Router shouldn't handle query parameters #27
Comments
hi, sorry I don't get your intention. could you please give a more detailed example? thanks! |
Sure. and route definition is: $app->get('/', function($params) use ($app) { die('Home'); }); The url is not matched by the route and I have to add special new one $app->get('/?homescreen=1', function($params) use ($app) { die('Home'); }); IMHO the route definition should match. Then I'll be able to read query parameters with For example FastRoute recommends stripping query string from URI (PATH_INFO in case of Lime) in basic usage example |
I see, but to be honest I wouldn't recommend to use the default route (using But instead provide your own one which should be already filtered: $app = new Lime\App([
'route' => $route
]); or $app->run($route); |
Thanks, I forgot it's possible to pass route manually to lime app |
At this moment, URLs with query parameteres have to be defined as routes:
/homescreen=1
In my opinion, a definition like
/
should work, but it doesn't.The text was updated successfully, but these errors were encountered: