aboutsummaryrefslogtreecommitdiffstats
path: root/backend/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/index.ts')
-rw-r--r--backend/src/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/src/index.ts b/backend/src/index.ts
index 3e2c559..c776ce1 100644
--- a/backend/src/index.ts
+++ b/backend/src/index.ts
@@ -8,6 +8,7 @@ import { startSessionCleanup } from './utils/session';
// Routes
import * as authRoutes from './routes/authRoutes';
import * as userRoutes from './routes/userRoutes';
+import * as gameRoutes from './routes/gameRoutes';
const app = express();
const port = 5000;
@@ -49,6 +50,8 @@ app.post('/api/logout', requireAuth, authRoutes.handleLogout);
app.get('/api/me', userRoutes.handleMeRoute);
app.get('/api/session', userRoutes.handleGetCurrentSession);
+app.get('/api/supportedGames', gameRoutes.handleGetSupportedGames);
+
app.listen(port, () => {
console.log(`Server listening on port ${port}`);
});
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage