fix(backend): Merge-conflicten opgelost.
This commit is contained in:
parent
8c387d6811
commit
fb3c37ce5a
8 changed files with 79 additions and 49 deletions
|
@ -1,5 +1,6 @@
|
|||
import express from 'express';
|
||||
import { getLearningPaths } from '../controllers/learning-paths.js';
|
||||
import {authenticatedOnly} from "../middleware/auth/checks/auth-checks";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
|
@ -22,6 +23,6 @@ const router = express.Router();
|
|||
// Route to fetch learning paths based on a theme
|
||||
// Example: http://localhost:3000/learningPath?theme=kiks
|
||||
|
||||
router.get('/', getLearningPaths);
|
||||
router.get('/', authenticatedOnly, getLearningPaths);
|
||||
|
||||
export default router;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue