20 lines
422 B
JavaScript
20 lines
422 B
JavaScript
|
|
import express from "express";
|
||
|
|
import {
|
||
|
|
createInquiry,
|
||
|
|
getInquiries,
|
||
|
|
getInquiry,
|
||
|
|
deleteInquiry,
|
||
|
|
} from "../controllers/inquiry.controller.js";
|
||
|
|
|
||
|
|
import jwtAuthMiddleware from "../middleware/auth.js";
|
||
|
|
|
||
|
|
const router = express.Router();
|
||
|
|
|
||
|
|
router.post("/", createInquiry);
|
||
|
|
|
||
|
|
router.get("/getAll", getInquiries);
|
||
|
|
router.get("/:id", getInquiry);
|
||
|
|
router.delete("/:id", jwtAuthMiddleware, deleteInquiry);
|
||
|
|
|
||
|
|
export default router;
|