Allow merging of HTTP verbs when doing separate verbs for the same route

Description

Currently, the following doesn't work as expected:

 

1 2 router.post( "photos/", "photos.create" ); router.get( "photos/", "photos.index" );

 

You would expect then you could either GET or POST to photos/. This is not the case. Instead this creates two routes. If you tried to GET /photos you would match the route that only has a POST verb and it would give you an error of an invalid HTTP verb.

Status

Assignee

Luis Majano

Reporter

Eric Peterson

Labels

None

Fix versions

Affects versions

5.6.0

Priority

Major