Update: Remove *all get request
This commit is contained in:
parent
ae0fe1f32f
commit
a12926f277
1 changed files with 0 additions and 5 deletions
|
|
@ -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}`);
|
||||
});
|
||||
|
|
|
|||
Reference in a new issue