aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-12-05 15:01:47 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-12-05 15:12:03 +0100
commit6bafac54bf375cd60f1c06f6afdc648e0e19743d (patch)
tree15bb5c0de684993a3301a9d86431569b2188d224 /server/controllers
parentbe6a4802326b1748e85c0d6fdadf06e70e6ecbb0 (diff)
downloadPeerTube-6bafac54bf375cd60f1c06f6afdc648e0e19743d.tar.gz
PeerTube-6bafac54bf375cd60f1c06f6afdc648e0e19743d.tar.zst
PeerTube-6bafac54bf375cd60f1c06f6afdc648e0e19743d.zip
Fix missing default avatar
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/client.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts
index 64e5829ca..f474c4282 100644
--- a/server/controllers/client.ts
+++ b/server/controllers/client.ts
@@ -18,6 +18,7 @@ import { VideoInstance } from '../models'
18const clientsRouter = express.Router() 18const clientsRouter = express.Router()
19 19
20const distPath = join(root(), 'client', 'dist') 20const distPath = join(root(), 'client', 'dist')
21const assetsImagesPath = join(root(), 'client', 'dist', 'assets', 'images')
21const embedPath = join(distPath, 'standalone', 'videos', 'embed.html') 22const embedPath = join(distPath, 'standalone', 'videos', 'embed.html')
22const indexPath = join(distPath, 'index.html') 23const indexPath = join(distPath, 'index.html')
23 24
@@ -33,6 +34,7 @@ clientsRouter.use('/videos/embed', (req: express.Request, res: express.Response,
33 34
34// Static HTML/CSS/JS client files 35// Static HTML/CSS/JS client files
35clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE })) 36clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE }))
37clientsRouter.use('/client/assets/images', express.static(assetsImagesPath, { maxAge: STATIC_MAX_AGE }))
36 38
37// 404 for static files not found 39// 404 for static files not found
38clientsRouter.use('/client/*', (req: express.Request, res: express.Response, next: express.NextFunction) => { 40clientsRouter.use('/client/*', (req: express.Request, res: express.Response, next: express.NextFunction) => {