databank verbinding in app.ts uitgezet, dummy json bodies toegevoegd in verschillende routes
This commit is contained in:
parent
deb5d772cb
commit
16b8ab368b
9 changed files with 74 additions and 20 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue