Skip to content

Commit

Permalink
fix robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
xCss committed Apr 4, 2017
1 parent 308bb0d commit 4f5d47d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ app.use('/about.html', function(req, res, next) {
/**
* Robots.txt
*/
app.use('/robots.txt', function(req, res, next) {
app.get('/robots.txt', function(req, res, next) {
res.header('content-type', 'text/plain');
res.send('User-Agent: * \nAllow: /');
});
Expand Down

0 comments on commit 4f5d47d

Please sign in to comment.