lucid-services/serviser

View on GitHub
lib/express/requestType.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
/**
 * http(s) end point types
 * @typedef RequestType
 * @type {Object}
 * @property {string} ALL
 * @property {string} GET
 * @property {string} POST
 * @property {string} PUT
 * @property {string} HEAD
 * @property {string} CONNECT
 * @property {string} OPTIONS
 * @property {string} DELETE
 */
module.exports = Object.freeze({
    ALL     : 'all',
    GET     : 'get',
    POST    : 'post',
    PUT     : 'put',
    HEAD    : 'head',
    CONNECT : 'connect',
    OPTIONS : 'options',
    DELETE  : 'delete'
});