Skip to content
Browse files

added lib/router/methods.js

  • Loading branch information...
1 parent 7208c33 commit fb655f49816f03cd866ad8e73614ee8662dffac6 @tj tj committed
Showing with 35 additions and 22 deletions.
  1. +4 −22 lib/router/index.js
  2. +31 −0 lib/router/methods.js
View
26 lib/router/index.js
@@ -10,7 +10,8 @@
*/
var utils = require('../utils')
- , parse = require('url').parse;
+ , parse = require('url').parse
+ , _methods = require('./methods');
/**
* Expose router.
@@ -19,29 +20,10 @@ var utils = require('../utils')
exports = module.exports = router;
/**
- * Supported HTTP / WebDAV methods.
+ * Expose methods.
*/
-var _methods = exports.methods = [
- 'get'
- , 'post'
- , 'put'
- , 'delete'
- , 'connect'
- , 'options'
- , 'trace'
- , 'copy'
- , 'lock'
- , 'mkcol'
- , 'move'
- , 'propfind'
- , 'proppatch'
- , 'unlock'
- , 'report'
- , 'mkactivity'
- , 'checkout'
- , 'merge'
-];
+exports.methods = _methods;
/**
* Provides Sinatra-like routing capabilities.
View
31 lib/router/methods.js
@@ -0,0 +1,31 @@
+
+/*!
+ * Express - router - methods
+ * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
+ * MIT Licensed
+ */
+
+/**
+ * Supported HTTP / WebDAV methods.
+ */
+
+module.exports = [
+ 'get'
+ , 'post'
+ , 'put'
+ , 'delete'
+ , 'connect'
+ , 'options'
+ , 'trace'
+ , 'copy'
+ , 'lock'
+ , 'mkcol'
+ , 'move'
+ , 'propfind'
+ , 'proppatch'
+ , 'unlock'
+ , 'report'
+ , 'mkactivity'
+ , 'checkout'
+ , 'merge'
+];

0 comments on commit fb655f4

Please sign in to comment.
Something went wrong with that request. Please try again.