initial commit
This commit is contained in:
10
routes/adopsection.route.js
Normal file
10
routes/adopsection.route.js
Normal file
@@ -0,0 +1,10 @@
|
||||
var { createSingleAdoptSection, getSingleAdoptSection, getAllAdoptSections, updateSingleAdoptSection, deleteSingleAdoptSection } = require("../controllers/adoptsection.controller");
|
||||
var { isAuthorized } = require("../middleware/auth");
|
||||
|
||||
module.exports = function(router) {
|
||||
router.post("/api/v1/adoptsections", isAuthorized, createSingleAdoptSection);
|
||||
router.get("/api/v1/adoptsections/:id", getSingleAdoptSection);
|
||||
router.get("/api/v1/adoptsections", getAllAdoptSections);
|
||||
router.put("/api/v1/adoptsections/:id", isAuthorized, updateSingleAdoptSection);
|
||||
router.delete("/api/v1/adoptsections/:id", isAuthorized, deleteSingleAdoptSection);
|
||||
};
|
||||
Reference in New Issue
Block a user