diff --git a/backend/controllers/LearningPathsController.js b/backend/controllers/LearningPathsController.js index faff76ae..8742f619 100644 --- a/backend/controllers/LearningPathsController.js +++ b/backend/controllers/LearningPathsController.js @@ -27,6 +27,7 @@ exports.deleteLearningPaths = async(req, res) => { res.status(400).json({error: err}); }; }); +} exports.LearningPath = async (req, res) => { try { @@ -39,4 +40,3 @@ exports.deleteLearningPaths = async(req, res) => { } -}; diff --git a/backend/views/routes/LearningPaths.js b/backend/views/routes/LearningPaths.js index 8dbcd871..8a46894a 100644 --- a/backend/views/routes/LearningPaths.js +++ b/backend/views/routes/LearningPaths.js @@ -1,9 +1,9 @@ const express = require('express'); const router = express.Router(); -const learningPathsController = require('../../controllers/LearningPathsController') +const learningPathsController = require('../../controllers/LearningPathsController'); router.post("/createLearningPaths", learningPathsController.createLearningPaths); router.delete("/deleteLearningPaths", learningPathsController.deleteLearningPaths) -router.get('/trilhas', learningPathsController.LearningPath); +router.get('/learningpath', learningPathsController.LearningPath); module.exports = router;