update gitignore to ignore dist file, remove dist files, update webpack and server statics
This commit is contained in:
@@ -132,7 +132,10 @@ app.post('/api/serverstats/rolestats', jsonParser, async (req, res) => {
|
||||
res.send(result)
|
||||
})
|
||||
|
||||
app.use('/', express.static('static'))
|
||||
app.use(express.static(__dirname + '/frontend'))
|
||||
app.use('/', (req, res) => {
|
||||
res.sendFile(__dirname + '/frontend/index.html')
|
||||
})
|
||||
|
||||
app.listen(port, async () => {
|
||||
await database.authenticate()
|
||||
|
||||
Reference in New Issue
Block a user