zot24's avatar

Allow any HTTP Method on my routes

How can I just allow any HTTP Method that could match a specific route? Like for example I don't care about if the request is GET, POST, PUT, DELETE or a personalised method like could be PROPFIND, how can we just pass any request to a specific controller method, something like:

$app->all('/principals', DavController@principals)

And then maybe if I needed handle inside that controller method the request however I need.

0 likes
6 replies
RachidLaasri's avatar
Route::any('principals', function()
{
    return 'Hello World';
});
zot24's avatar

I'm using Lumen, we don't have Route in Lumen isn't it?

Please or to participate in this conversation.