aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/manifest.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/manifest.js b/routes/manifest.js
index 377b7be..b2ce55f 100644
--- a/routes/manifest.js
+++ b/routes/manifest.js
@@ -2,6 +2,7 @@
const express = require('express')
const router = express.Router()
+const path = require('path')
router.get('/', function (req, res, next) {
console.log('got a request')
@@ -9,9 +10,9 @@ router.get('/', function (req, res, next) {
const isBeta = process.env.BETA === '1'
if (isBeta) {
- res.sendFile('manifest.beta.webmanifest', { root: './public' })
+ res.sendFile('manifest.beta.webmanifest', { root: path.join(__dirname, '../public') })
} else {
- res.sendFile('manifest.webmanifest', { root: './public' })
+ res.sendFile('manifest.webmanifest', { root: path.join(__dirname, '../public') })
}
})