diff --git a/backend/src/app.ts b/backend/src/app.ts index 798719b..891747a 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -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}`) diff --git a/frontend/vite.config.mts b/frontend/vite.config.ts similarity index 100% rename from frontend/vite.config.mts rename to frontend/vite.config.ts