Skip to content
Myr

added lib/router/methods.js

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 7208c33 · Browse files · 2 files+35 added−22 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+35 added−22 removed

  • other:+35 added−22 removed

2 files+35 added−22 removed

modified:lib/router/index.js+4 added-22 removed
8 unmodified lines
9 * Module dependencies.10 */1112var utils = require('../utils')13 , parse = require('url').parse;13 , parse = require('url').parse14 , _methods = require('./methods');1516/**17 * Expose router.18 */1920exports = module.exports = router;2122/**22 * Supported HTTP / WebDAV methods.23 * Expose methods.24 */2525var _methods = exports.methods = [26 'get'27 , 'post'28 , 'put'29 , 'delete'30 , 'connect'31 , 'options'32 , 'trace'33 , 'copy'34 , 'lock'35 , 'mkcol'36 , 'move'37 , 'propfind'38 , 'proppatch'39 , 'unlock'40 , 'report'41 , 'mkactivity'42 , 'checkout'43 , 'merge'44];26exports.methods = _methods;2728/**29 * Provides Sinatra-like routing capabilities.30 *
315 unmodified lines
added:lib/router/methods.js+31 added