From: Chocobozzz Date: Thu, 8 Feb 2018 09:09:41 +0000 (+0100) Subject: Server the manifest too X-Git-Tag: v0.0.21-alpha~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=5980a252a7f71e3e79a1b7ca39a63eb4dbfca9e4;p=github%2FChocobozzz%2FPeerTube.git Server the manifest too --- diff --git a/server/controllers/client.ts b/server/controllers/client.ts index c85bd8a5e..28b42911a 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts @@ -11,6 +11,7 @@ const clientsRouter = express.Router() const distPath = join(root(), 'client', 'dist') const assetsImagesPath = join(root(), 'client', 'dist', 'client', 'assets', 'images') +const manifestPath = join(root(), 'client', 'dist', 'client', 'manifest.json') const embedPath = join(distPath, 'standalone', 'videos', 'embed.html') const indexPath = join(distPath, 'index.html') @@ -26,6 +27,7 @@ clientsRouter.use('/videos/embed', (req: express.Request, res: express.Response, // Static HTML/CSS/JS client files clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE })) +clientsRouter.use('/client/manifest.json', express.static(manifestPath, { maxAge: STATIC_MAX_AGE })) clientsRouter.use('/client/assets/images', express.static(assetsImagesPath, { maxAge: STATIC_MAX_AGE })) // 404 for static files not found