-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete Update Features for Wallet, Planning, Category
- Loading branch information
1 parent
ea49abc
commit 9b756e0
Showing
5 changed files
with
110 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 1,16 @@ | ||
const express = require('express') | ||
const express = require("express"); | ||
const router = express.Router(); | ||
const category = require("../controllers/categoryControllers"); | ||
const { isAuthenticated } = require("../middlewares/auth"); | ||
|
||
router.post("/create", isAuthenticated, category.createCategory) | ||
router.post("/create", isAuthenticated, category.createCategory); | ||
|
||
router.get("/view", isAuthenticated, category.viewCategories) | ||
router.get("/view", isAuthenticated, category.viewCategories); | ||
|
||
router.get("/view/:id", isAuthenticated, category.viewCategory) | ||
router.get("/view/:id", isAuthenticated, category.viewCategory); | ||
|
||
router.delete("/delete/:id", isAuthenticated, category.deleteCategory) | ||
router.put("/update/:id", isAuthenticated, category.updateCategory); | ||
|
||
module.exports = router; | ||
router.delete("/delete/:id", isAuthenticated, category.deleteCategory); | ||
|
||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters