feat: added learningPaths.ts

This commit is contained in:
Gabriellvl 2025-02-26 23:31:50 +01:00
parent cfaae9ebe4
commit e8e1d94e5b
5 changed files with 193 additions and 8 deletions

View file

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