Merge branch 'dev' into feat/api-outline
This commit is contained in:
commit
3285d9ce12
58 changed files with 2438 additions and 12084 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue