potato
This commit is contained in:
@@ -10,10 +10,6 @@ const app = express()
|
||||
const jsonParser = json()
|
||||
const port = 3001
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello World!')
|
||||
})
|
||||
|
||||
addGameApis(app, jsonParser)
|
||||
addCharacterApis(app, jsonParser)
|
||||
|
||||
@@ -136,6 +132,8 @@ app.post('/api/serverstats/rolestats', jsonParser, async (req, res) => {
|
||||
res.send(result)
|
||||
})
|
||||
|
||||
app.use('/', express.static('static'))
|
||||
|
||||
app.listen(port, async () => {
|
||||
await database.authenticate()
|
||||
return console.log(`Express is listening at http://localhost:${port}`)
|
||||
|
||||
Reference in New Issue
Block a user