diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-09-13 16:28:53 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-09-13 16:28:53 +0200 |
commit | 3fb86482404e11942cd83c3500a297a3991db0e4 (patch) | |
tree | c5e7261de72c2b7f871580784525d06d036a6219 /routes/manifest.js | |
parent | 5aac32f72eca8c66e879583ce653d07bb3c7370f (diff) |
Restructure project
Diffstat (limited to 'routes/manifest.js')
-rw-r--r-- | routes/manifest.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/routes/manifest.js b/routes/manifest.js deleted file mode 100644 index b2ce55f..0000000 --- a/routes/manifest.js +++ /dev/null @@ -1,19 +0,0 @@ -'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 |