Permalink
Browse files

Added a hello message in the app root.

  • Loading branch information...
1 parent 6a046a3 commit 6f98a9db7137d88cf48378519c874161d05ee68a @kishorenc committed Jun 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 server.js
View
@@ -7,6 +7,10 @@ var usersOnline = Object.create(null);
app.listen(7100);
+app.get('/', function(req, res) {
+ res.send('Hello from NodeSocks!');
+});
+
app.get('/user/:username', function (req, res) {
res.render(__dirname + '/client.ejs', {layout: false, username: req.params.username});
});

0 comments on commit 6f98a9d

Please sign in to comment.