This commit is contained in:
jmosrael@gmail.com
2024-06-07 22:17:07 -07:00
parent 4eb5b22dc9
commit 43bd251940
2 changed files with 2 additions and 4 deletions

View File

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