blob: b2ce55fecbc1a62da4a55635f2f48f15f2a6eb07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict'
const express = require('express')
const router = express.Router()
const path = require('path')
router.get('/', function (req, res, next) {
console.log('got a request')
const isBeta = process.env.BETA === '1'
if (isBeta) {
res.sendFile('manifest.beta.webmanifest', { root: path.join(__dirname, '../public') })
} else {
res.sendFile('manifest.webmanifest', { root: path.join(__dirname, '../public') })
}
})
module.exports = router
|