Permalink
Browse files

redirect / -> /test/

  • Loading branch information...
1 parent 9846368 commit 32a569babdba285e8c41067b49c5620b4c27e928 @tj tj committed Sep 8, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −1 Readme.md
  2. +4 −0 test/server.js
View
2 Readme.md
@@ -94,7 +94,7 @@ request.post('/api/pet', cat, function(res){
$ make test
- Visit `localhost:3000/test/` in the browser.
+ Visit `localhost:3000/` in the browser.
## Browser support
View
4 test/server.js
@@ -9,6 +9,10 @@ var app = express.createServer();
app.use(express.bodyParser());
+app.get('/', function(req, res){
+ res.redirect('/test/');
+});
+
app.get('/error', function(req, res){
res.status(500).send('fail');
});

0 comments on commit 32a569b

Please sign in to comment.