From a12926f277190973cb00b82777285171eb89c3cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Y=C3=BBki=20VACHOT?= Date: Thu, 23 Dec 2021 13:10:57 +0100 Subject: [PATCH] Update: Remove *all get request --- server.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server.js b/server.js index b833c0a..0dd8921 100644 --- a/server.js +++ b/server.js @@ -1,4 +1,3 @@ -const path = require('path'); const express = require('express'); const app = express(); const port = process.env.PORT || 3000; @@ -78,10 +77,6 @@ User.exists({role: roles.SuperAdmin}, function (err, docs){ } }); -app.get('/*all', function(req,res) { - res.sendFile(path.join(__dirname+ '/dist/index.html')); -}); - app.listen(port, '0.0.0.0',() => { console.log (`listening on port ${port}`); });