Skip to content
Snippets Groups Projects
Unverified Commit 6957bc3e authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

Robots.txt (#369)

* assume default model where appropriate

* merge with master and fix other model refs

* disallow robots

* add public file
parent 8743be67
No related branches found
No related tags found
No related merge requests found
User-agent: *
Disallow: /
\ No newline at end of file
......@@ -77,6 +77,11 @@ if (process.env.NODE_ENV !== "development") {
app.use("/", function (_, response) {
response.sendFile(path.join(__dirname, "public", "index.html"));
});
app.get("/robots.txt", function (_, response) {
response.type("text/plain");
response.send("User-agent: *\nDisallow: /").end();
});
}
app.use(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment