Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix examples/user.js so it no longer crashes on startup #42

Merged
merged 1 commit into from

2 participants

@mscdex
Owner

No description provided.

@tj tj merged commit d0118c6 into expressjs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 25, 2011
  1. @mscdex
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 5 deletions.
  1. +2 −5 examples/user.js
View
7 examples/user.js
@@ -1,6 +1,3 @@
-
-require.paths.unshift(__dirname + '/../support');
-
/**
* Module dependencies.
*/
@@ -35,11 +32,11 @@ var user = {
destroy: function(req, res){
delete users[req.params.user];
res.send('removed ' + req.params.user);
- }
+ },
login: function(req, res){
res.send('logged in ' + req.params.user);
- }
+ },
logout: function(req, res){
res.send('logged out');
Something went wrong with that request. Please try again.