Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
added robots.txt route
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Apr 17, 2017
1 parent ce7203c commit 3e3b716
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ app.get("/favicon.ico", function (req, res) {
res.redirect(301, "/static/img/icon-32.png");
});

app.get("/robots.txt", function (req, res) {
res.header("Content-Type", "text/plain");
res.send("User-agent: *\nDisallow: /\n");
});

app.post("/error", function (req, res) {
let bodyObj = req.body;
if (typeof bodyObj !== "object") {
Expand Down

0 comments on commit 3e3b716

Please # to comment.