Added: Company
This commit is contained in:
19
src/controller/company.router.js
Normal file
19
src/controller/company.router.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const router = require("express").Router();
|
||||
const controller = require("./company.controller");
|
||||
|
||||
/**
|
||||
* @route /company/:id
|
||||
*/
|
||||
router.get("/:id", controller.getCompanyByID);
|
||||
|
||||
/**
|
||||
* @route /company/
|
||||
*/
|
||||
router.post("/", controller.createCompany);
|
||||
|
||||
/**
|
||||
* @route /company/
|
||||
*/
|
||||
router.patch("/:id", controller.updateCompanyByID);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user