feat: added route for learningObjects

This commit is contained in:
Gabriellvl 2025-02-28 17:04:52 +01:00
parent e8e1d94e5b
commit d401136d3a
7 changed files with 116 additions and 10 deletions

View file

@ -2,6 +2,8 @@ import express, { Express, Response } from 'express';
import initORM from './orm.js';
import themeRoutes from './routes/themes.js';
import learningPathRoutes from './routes/learningPaths.js'
import learningObjectRoutes from './routes/learningObjects.js'
const app: Express = express();
const port: string | number = process.env.PORT || 3000;
@ -15,6 +17,7 @@ app.get('/', (_, res: Response) => {
app.use('/theme', themeRoutes);
app.use('/learningPath', learningPathRoutes);
app.use('/learningObject', learningObjectRoutes);
async function startServer() {
await initORM();