Skip to content

Commit

Permalink
update url
Browse files Browse the repository at this point in the history
  • Loading branch information
wandaazhar007 committed Apr 16, 2024
1 parent 31e4459 commit 2668be7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions routes/CategoryRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { createCategory, getCategory, getCategoryById, updateCategory, deleteCat

const router = express.Router();

router.get('/category', getCategory);
router.get('/category/:id', getCategoryById);
router.post('/category', createCategory);
router.patch('/category/:id', updateCategory);
router.delete('/category/:id', deleteCategory)
router.get('/api/category', getCategory);
router.get('/api/category/:id', getCategoryById);
router.post('/api/category', createCategory);
router.patch('/api/category/:id', updateCategory);
router.delete('/api/category/:id', deleteCategory)

export default router;
14 changes: 7 additions & 7 deletions routes/MyBlogRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { createBlog, getAllBlog, getMyBlog, updateMyBlog, getButtonCategory, del

const router = express.Router();

router.get('/my-blog', getMyBlog);
router.get('/my-blog-per-category', getButtonCategory);
router.get('/my-blog-all', getAllBlog);
// router.get('/my-blog/:id', getMyBlogById);
router.post('/my-blog', createBlog);
router.patch('/my-blog/:id', updateMyBlog);
router.delete('/my-blog/:id', deleteMyBlog);
router.get('/api/my-blog', getMyBlog);
router.get('/api/my-blog-per-category', getButtonCategory);
router.get('/api/my-blog-all', getAllBlog);
// router.get('/api/my-blog/:id', getMyBlogById);
router.post('/api/my-blog', createBlog);
router.patch('/api/my-blog/:id', updateMyBlog);
router.delete('/api/my-blog/:id', deleteMyBlog);

export default router;
10 changes: 5 additions & 5 deletions routes/MyWorkRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { createMyWork, getMyWork, getMyWorkById, updateMyWork, deleteMyWork } fr

const router = express.Router();

router.get('/my-work', getMyWork);
router.get('/my-work/:id', getMyWorkById);
router.post('/my-work', createMyWork);
router.patch('/my-work/:id', updateMyWork);
router.delete('/my-work/:id', deleteMyWork);
router.get('/api/my-work', getMyWork);
router.get('/api/my-work/:id', getMyWorkById);
router.post('/api/my-work', createMyWork);
router.patch('/api/my-work/:id', updateMyWork);
router.delete('/api/my-work/:id', deleteMyWork);

export default router;

0 comments on commit 2668be7

Please sign in to comment.