Merge branch 'dev' into feat/api-outline

This commit is contained in:
Gabriellvl 2025-02-27 15:45:03 +01:00 committed by GitHub
commit 3285d9ce12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
58 changed files with 2438 additions and 12084 deletions

View file

@ -1,5 +1,6 @@
import express, { Express, Response } from 'express';
import initORM from './orm.js';
import themeRoutes from './routes/themes.js';
import studentRouter from './routes/student';
import groupRouter from './routes/group';
@ -16,7 +17,7 @@ const port: string | number = process.env.PORT || 3000;
// TODO Replace with Express routes
app.get('/', (_, res: Response) => {
res.json({
message: 'Hello Dwengo!',
message: 'Hello Dwengo!🚀',
});
});
@ -28,6 +29,7 @@ app.use('/class', classRouter);
app.use('/question', questionRouter);
app.use('/login', loginRouter);
app.use('/theme', themeRoutes);
async function startServer() {
await initORM();