Skip to content
Myr

misc refactor

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 d9aa7c3 · Browse files · 1 file+3 added−6 removed
This commit

State

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

Diff stats

1 file+3 added−6 removed

  • other:+3 added−6 removed

1 file+3 added−6 removed

modified:lib/http.js+3 added-6 removed
10 unmodified lines
1112var qs = require('qs')13 , connect = require('connect')14 , router = require('./router')15 , methods = router.methods.concat(['del', 'all'])15 , methods = router.methods.concat('del', 'all')16 , view = require('./view')17 , url = require('url')18 , utils = connect.utils;19
454 unmodified lines
474};475476// Generate routing methods477478function generateMethod(method){478methods.forEach(function(method){479 app[method] = function(path){480 var self = this;481482 // Lookup
9 unmodified lines
492 // Generate the route493 this.routes[method].apply(this, arguments);494 return this;495 };496 return arguments.callee;497}496});497499methods.forEach(generateMethod);500498// Alias delete as "del"499500app.del = app.delete;