feat: added learningPaths.ts
This commit is contained in:
parent
cfaae9ebe4
commit
e8e1d94e5b
5 changed files with 193 additions and 8 deletions
18
backend/src/routes/learningPaths.ts
Normal file
18
backend/src/routes/learningPaths.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import express from "express";
|
||||
import { getLearningPathsFromIds, getLearningPathsByTheme, getAllLearningPaths, searchLearningPaths } from "../controllers/learningPaths.js";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
// Route to fetch learning paths based on a list of HRUIDs
|
||||
router.get("/", getLearningPathsFromIds);
|
||||
|
||||
// Route to fetch all possible learning paths
|
||||
router.get("/all", getAllLearningPaths);
|
||||
|
||||
// Route to fetch learning paths based on a searchterm
|
||||
router.get("/search", searchLearningPaths);
|
||||
|
||||
// Route to fetch learning paths based on a theme
|
||||
router.get("/theme/:theme", getLearningPathsByTheme);
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue