aboutsummaryrefslogtreecommitdiff
path: root/routes/manifest.js
blob: 377b7bef153fff15a5ef833cc5ea558e1e50a76e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'

const express = require('express')
const router = express.Router()

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: './public' })
  } else {
    res.sendFile('manifest.webmanifest', { root: './public' })
  }
})

module.exports = router