aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/client.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts
index 86ac5fbbc..0a27ace76 100644
--- a/server/controllers/client.ts
+++ b/server/controllers/client.ts
@@ -84,12 +84,6 @@ clientsRouter.use('/client/*', (req: express.Request, res: express.Response) =>
84 res.status(HttpStatusCode.NOT_FOUND_404).end() 84 res.status(HttpStatusCode.NOT_FOUND_404).end()
85}) 85})
86 86
87// No index exceptions
88clientsRouter.all('/about/peertube',
89 disableRobots,
90 asyncMiddleware(serveIndexHTML)
91)
92
93// Always serve index client page (the client is a single page application, let it handle routing) 87// Always serve index client page (the client is a single page application, let it handle routing)
94// Try to provide the right language index.html 88// Try to provide the right language index.html
95clientsRouter.use('/(:language)?', asyncMiddleware(serveIndexHTML)) 89clientsRouter.use('/(:language)?', asyncMiddleware(serveIndexHTML))