-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRouteTypes.js
More file actions
39 lines (38 loc) · 936 Bytes
/
RouteTypes.js
File metadata and controls
39 lines (38 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @description
* Tipo de rotas e metodos http para configuração de Router
*
* {@link https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol}
* @memberof module:lib/routes
* @static
* @type {Object}
* @property {String} RPC rpc
* @property {String} PUBSUB pubsub
* @property {String} ALL all
* @property {String} PUT put
* @property {String} PATCH patch
* @property {String} CONNECT connect
* @property {String} OPTIONS options
* @property {String} TRACE trace
* @property {String} HEAD head
* @property {String} DELETE delete
* @property {String} UPDATE update
* @property {String} POST post
* @property {String} GET get
*/
const RouteTypes = {
RPC: 'rpc',
PUBSUB: 'pubsub',
ALL: 'all',
PUT: 'put',
PATCH: 'patch',
CONNECT: 'connect',
OPTIONS: 'options',
TRACE: 'trace',
HEAD: 'head',
DELETE: 'delete',
UPDATE: 'update',
POST: 'post',
GET: 'get'
}
export default RouteTypes