Skip to content
Myr

Implemented nesting params

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

authored by visionmedia · committed by visionmedia · parent a989232 · Browse files · 1 file+7 added−1 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+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:lib/express.core.js+7 added-1 removed
23 unmodified lines
24 */25 26 start : function(port) {27 this.server.listen(port || 3000, function(request, response){28 request.uri.params = Express.parseNestedParams(request.uri.params)29 request.uri.path = Express.normalizePath(request.uri.path)30 Express.request = request29 Express.request.uri.path = Express.normalizePath(Express.request.uri.path)31 Express.response.body = Express.callRouteFor(request)32 response.sendHeader(Express.response.status, Express.hashToArray(Express.response.headers))33 response.sendBody(Express.response.body || '')34 response.finish()
303 unmodified lines
338 put = Express.routeFunctionFor('put')339 340})()341342get('users', function(){343 if (param('user')) return 'user ' + param('user').name344 return 'users list'345})346347Express.start()