Skip to content
Myr

Misc refactoring of mvc example

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 ae5ea70 · Browse files · 8 files+55 added−21 removed
This commit

State

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

Diff stats

8 files+55 added−21 removed

  • other:+55 added−21 removed

8 files+55 added−21 removed

modified:examples/mvc/controllers/user.js+4 added-3 removed
added:examples/mvc/views/partials/messages.html+7 added
modified:examples/mvc/views/user/edit.html+5 added-4 removed
modified:examples/mvc/views/user/index.html+2 added-1 removed
modified:examples/mvc/views/user/show.html+3 added-2 removed
modified:examples/mvc/app.js+1 added-8 removed
modified:examples/mvc/mvc.js+31 added-1 removed
modified:examples/pages/app.js+2 added-2 removed
55 unmodified lines
56app.get('/404', function(req, res){57 throw new NotFound;58});5960app.get('/500', function(req, res){61 throw new Error('keyboard cat!');60app.get('/500', function(req, res, next){61 next(new Error('keyboard cat!'));62});6364app.listen(3000);