Update: Remove *all get request

This commit is contained in:
Yûki VACHOT 2021-12-23 13:10:57 +01:00
parent ae0fe1f32f
commit a12926f277

View file

@ -1,4 +1,3 @@
const path = require('path');
const express = require('express'); const express = require('express');
const app = express(); const app = express();
const port = process.env.PORT || 3000; 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',() => { app.listen(port, '0.0.0.0',() => {
console.log (`listening on port ${port}`); console.log (`listening on port ${port}`);
}); });