Skip to content

Commit

Permalink
handled robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanleith committed Jun 24, 2011
1 parent c5513f0 commit 2725abe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app.js
Expand Up @@ -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);
});


Expand Down
2 changes: 2 additions & 0 deletions robots.txt
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit 2725abe

Please sign in to comment.