Skip to content

Match any route to OPTIONS request method #84

@akrz

Description

@akrz

Is it possible to make a route that matches all routes for a given request method? I need this to match any route to an OPTIONS request method. Something like this:

$router->options('*', function (){
    return new Response();
});

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