You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: