22 lines
516 B
JavaScript
22 lines
516 B
JavaScript
import { Router } from "express";
|
|
import {
|
|
isAuthenticatedUser,
|
|
authorizeRoles,
|
|
isBusinessAuthenticated,
|
|
} from "../../middlewares/auth.js";
|
|
import {
|
|
createSpecialty,
|
|
deleteSpecialty,
|
|
getAllSpecialty,
|
|
getSingleSpecialty,
|
|
} from "./SpecialtiesController.js";
|
|
|
|
const router = Router();
|
|
|
|
router.route("/add").post(createSpecialty);
|
|
router.route("/getall").get(getAllSpecialty);
|
|
router.route("/get/:id").get(getSingleSpecialty);
|
|
router.route("/delete/:id").delete(deleteSpecialty);
|
|
|
|
export default router;
|