php-mvc-framework icon indicating copy to clipboard operation
php-mvc-framework copied to clipboard

Restricting url from parameter use with ?

Open mmguide2003 opened this issue 2 years ago • 0 comments

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.

mmguide2003 avatar Aug 15 '23 09:08 mmguide2003