aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/client.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/client.ts')
-rw-r--r--server/controllers/client.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts
index ac722a578..d913f81b8 100644
--- a/server/controllers/client.ts
+++ b/server/controllers/client.ts
@@ -24,7 +24,7 @@ const indexPath = join(distPath, 'index.html')
24// Do not use a template engine for a so little thing 24// Do not use a template engine for a so little thing
25clientsRouter.use('/videos/watch/:id', generateWatchHtmlPage) 25clientsRouter.use('/videos/watch/:id', generateWatchHtmlPage)
26 26
27clientsRouter.use('/videos/embed', function (req: express.Request, res: express.Response, next: express.NextFunction) { 27clientsRouter.use('/videos/embed', (req: express.Request, res: express.Response, next: express.NextFunction) => {
28 res.sendFile(embedPath) 28 res.sendFile(embedPath)
29}) 29})
30 30
@@ -32,7 +32,7 @@ clientsRouter.use('/videos/embed', function (req: express.Request, res: express.
32clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE })) 32clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE }))
33 33
34// 404 for static files not found 34// 404 for static files not found
35clientsRouter.use('/client/*', function (req: express.Request, res: express.Response, next: express.NextFunction) { 35clientsRouter.use('/client/*', (req: express.Request, res: express.Response, next: express.NextFunction) => {
36 res.sendStatus(404) 36 res.sendStatus(404)
37}) 37})
38 38