aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/static.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts
index eece9c06b..c1bf384a4 100644
--- a/server/controllers/static.ts
+++ b/server/controllers/static.ts
@@ -44,6 +44,12 @@ staticRouter.use(
44 asyncMiddleware(getPreview) 44 asyncMiddleware(getPreview)
45) 45)
46 46
47// robots.txt service
48staticRouter.get('/robots.txt', (req: express.Request, res: express.Response) => {
49 res.type('text/plain')
50 return res.send(CONFIG.INSTANCE.ROBOTS)
51})
52
47// --------------------------------------------------------------------------- 53// ---------------------------------------------------------------------------
48 54
49export { 55export {