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

Restricting url from parameter use with ? #31

Open
mmguide2003 opened this issue Aug 15, 2023 · 0 comments
Open

Restricting url from parameter use with ? #31

mmguide2003 opened this issue Aug 15, 2023 · 0 comments

Comments

@mmguide2003
Copy link

mmguide2003 commented Aug 15, 2023

Hi,
Just wondered if on the index page you can set the router to not allow any ? parameters and allow ?query=xxx but restrict what parameters are allowable.

e.g.
$app->router->get('/test', [SiteController::class, 'test']);

mysite.com/test?dddd is currently accessible for any test?xxxxx

Can we restrict it to:
mysite.com/test

Another page I would like it to read:
mysite.com/blog?p=1
specifying only p as a query parameter.

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