feat: added route for learningObjects
This commit is contained in:
parent
e8e1d94e5b
commit
d401136d3a
7 changed files with 116 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue