aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/client.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-07-11 17:04:57 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-07-11 17:05:55 +0200
commit075f16caac5236cb04c98ae7b3a989766d764bb3 (patch)
tree9a30024aa771735a28d83d9a166033b82dbcaf60 /server/controllers/client.ts
parent4e979c3e1b81f4762025d9db3052b1f70774b3bb (diff)
downloadPeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.gz
PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.zst
PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.zip
Remove "function" in favor of () => {}
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