Skip to content

Allow for multiple methods in METHOD call #32

@jeremydaly

Description

@jeremydaly

Was thinking that you could define a route for multiple methods using an array of methods in a METHOD call. For example, api.METHOD([ 'post', 'put' ], '/some/path', (req,res)=> {})

This would be similar to the idea of an any() convenience method, but would restrict the allowable methods.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions