From 3fb86482404e11942cd83c3500a297a3991db0e4 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Wed, 13 Sep 2017 16:28:53 +0200 Subject: Restructure project --- routes/manifest.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 routes/manifest.js (limited to 'routes/manifest.js') 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 -- cgit v1.1