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

Commit

Permalink
Create empty robots.txt. Closes #3635 (#3639)
Browse files Browse the repository at this point in the history
* Create empty robots.txt. Closes #3635

#3635

* delete misplaced robots.txt

* Create robots.txt

* Delete robots.txt

* Update Server.js

add /robots.txt case
  • Loading branch information
Apply55gx authored and ianb committed Oct 17, 2017
1 parent 1d911e2 commit c51912b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/pages/homepage/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ let app = express();

exports.app = app;

app.get("/robots.txt", function(req, res) {
res.send('');
});

app.get("/", function(req, res) {
const page = require("./page").page;
reactrender.render(req, res, page);
Expand Down

0 comments on commit c51912b

Please sign in to comment.