fix: api helper voor extra error checks bij fetch dwengo api + schrijffout in controllers/themes

This commit is contained in:
Gabriellvl 2025-03-01 15:15:04 +01:00
parent 0c7f5791ea
commit 91eb374b7e
5 changed files with 45 additions and 8 deletions

View file

@ -3,9 +3,12 @@ import { getAllLearningObjects } from '../controllers/learningObjects.js';
const router = express.Router();
// DWENGO learning objects
// Arg: hruid learningPath
// Query: language
// Route to fetch list of learning objects based on hruid of learning path
// example: http://localhost:3000/learningObject/un_artificiele_intelligentie
router.get('/:hruid', getAllLearningObjects);
export default router;

View file

@ -8,6 +8,8 @@ import {
const router = express.Router();
// DWENGO learning paths
// Query: hruids(list), language
// Route to fetch learning paths based on a list of HRUIDs
// Example: http://localhost:3000/learningPath?hruids=pn_werking&hruids=art1