mirror of
https://github.com/louislam/dockge.git
synced 2026-05-22 14:32:16 +00:00
wip
This commit is contained in:
@@ -10,6 +10,13 @@ export class MainRouter extends Router {
|
||||
res.send(server.indexHTML);
|
||||
});
|
||||
|
||||
// Robots.txt
|
||||
router.get("/robots.txt", async (_request, response) => {
|
||||
let txt = "User-agent: *\nDisallow: /";
|
||||
response.setHeader("Content-Type", "text/plain");
|
||||
response.send(txt);
|
||||
});
|
||||
|
||||
return router;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user