Skip to content
Myr

Docs

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

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

  • other:+9 added−7 removed

1 file+9 added−7 removed

modified:README.rdoc+9 added-7 removed
27 unmodified lines
2829 // GET /user/tj/edit30 31 get('user/:name/:operation', function(){32 return param('operation') + 'ing ' + param('name')32 param('operation') + 'ing ' + param('name')33 })3435 // GET /articles36 37 get('articles', function(){38 return 'list of articles'38 'list of articles'39 })4041 // GET /articles/1242 43 get(/articles\/(\d+)/, function(){44 return 'article id ' + captures[1]44 'article id ' + captures[1]45 })4647 // GET /articles/foo46 49 get('articles/:name', function(){50 return 'article name ' + param('name')47 // POST /user/:id48 49 post('user/:id', function(){50 User.destroy(params('id')) ? 51 'User deleted' :52 'Failed to delete user'53 })5455== License 56
22 unmodified lines