Permalink
Browse files

handled robots.txt

  • Loading branch information...
1 parent c5513f0 commit 2725abe13f452ce3fe07bffcda2f55f9dc517e45 @ewanleith committed Jun 24, 2011
Showing with 7 additions and 1 deletion.
  1. +5 −1 app.js
  2. +2 −0 robots.txt
View
@@ -69,8 +69,12 @@ app.get('/', function(req, res){
getTweets(res);
});
+app.get('/robots.txt', function(req, res){
+ res.sendfile('robots.txt');
+});
+
app.get('*', function(req, res){
- res.send('Page not found, should be a 404 here');
+ res.send('Page not found, should be a 404 here', 404);
});
View
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /

0 comments on commit 2725abe

Please sign in to comment.