Skip to content

Restricting url from parameter use with ? #31

Open
@mmguide2003

Description

@mmguide2003

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions