List of methods that are being used for express api handling:
- all
- checkout
- copy
- delete
- get
- head
- lock
- merge
- mkactivity
- mkcol
- move
- m-search
- notify
- options
- param
- patch
- post
- purge
- put
- report
- search
- subscribe
- trace
- unlock
- unsubscribe
npm install --save express-api-methods
or with yarn:
yarn add express-api-methods
import methods from 'express-api-methods'
console.log(methods)
/*
[
'all',
'checkout',
'copy',
'delete',
'get',
'head',
'lock',
'merge',
'mkactivity',
'mkcol',
'move',
'm-search',
'notify',
'options',
'param',
'patch',
'post',
'purge',
'put',
'report',
'search',
'subscribe',
'trace',
'unlock',
'unsubscribe',
]
*/