From 43bd251940f8759755900e6e05cecac1ff0c0bbb Mon Sep 17 00:00:00 2001 From: "jmosrael@gmail.com" Date: Fri, 7 Jun 2024 22:17:07 -0700 Subject: [PATCH] potato --- backend/src/app.ts | 6 ++---- frontend/{vite.config.mts => vite.config.ts} | 0 2 files changed, 2 insertions(+), 4 deletions(-) rename frontend/{vite.config.mts => vite.config.ts} (100%) 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