Restricting url from parameter use with ?
mmguide2003 opened this issue · 0 comments
mmguide2003 commented
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.