Skip to content

Commit

Permalink
front
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielMEsteves committed Nov 22, 2023
1 parent 5448189 commit 831f7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/controllers/LearningPathsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports.deleteLearningPaths = async(req, res) => {
res.status(400).json({error: err});
};
});
}

exports.LearningPath = async (req, res) => {
try {
Expand All @@ -39,4 +40,3 @@ exports.deleteLearningPaths = async(req, res) => {


}
};
4 changes: 2 additions & 2 deletions backend/views/routes/LearningPaths.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 831f7b7

Please sign in to comment.