Merge branch 'dev' into feat/service-layer
This commit is contained in:
commit
e487dfff5c
20 changed files with 647 additions and 74 deletions
35
backend/src/routes/router.ts
Normal file
35
backend/src/routes/router.ts
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { Response, Router } from 'express';
|
||||
import studentRouter from './student';
|
||||
import groupRouter from './group';
|
||||
import assignmentRouter from './assignment';
|
||||
import submissionRouter from './submission';
|
||||
import classRouter from './class';
|
||||
import questionRouter from './question';
|
||||
import authRouter from './auth';
|
||||
import themeRoutes from './themes';
|
||||
import learningPathRoutes from './learning-paths';
|
||||
import learningObjectRoutes from './learning-objects';
|
||||
import { getLogger, Logger } from '../logging/initalize';
|
||||
|
||||
const router = Router();
|
||||
const logger: Logger = getLogger();
|
||||
|
||||
router.get('/', (_, res: Response) => {
|
||||
logger.debug('GET /');
|
||||
res.json({
|
||||
message: 'Hello Dwengo!🚀',
|
||||
});
|
||||
});
|
||||
|
||||
router.use('/student', studentRouter);
|
||||
router.use('/group', groupRouter);
|
||||
router.use('/assignment', assignmentRouter);
|
||||
router.use('/submission', submissionRouter);
|
||||
router.use('/class', classRouter);
|
||||
router.use('/question', questionRouter);
|
||||
router.use('/auth', authRouter);
|
||||
router.use('/theme', themeRoutes);
|
||||
router.use('/learningPath', learningPathRoutes);
|
||||
router.use('/learningObject', learningObjectRoutes);
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue