databank verbinding in app.ts uitgezet, dummy json bodies toegevoegd in verschillende routes

This commit is contained in:
Adriaan Jacquet 2025-02-25 12:27:57 +01:00
parent deb5d772cb
commit 16b8ab368b
9 changed files with 74 additions and 20 deletions

View file

@ -1,5 +1,5 @@
import express, { Express, Response } from 'express';
import initORM from './orm.js';
import { initORM } from './orm.js';
import studentRouter from './routes/student';
import groupRouter from './routes/group';
@ -30,7 +30,7 @@ app.use('/login', loginRouter);
async function startServer() {
await initORM();
//await initORM();
app.listen(port, () => {
console.log(`Server is running at http://localhost:${port}`);