2026-03-16 12:39:41 +05:30
|
|
|
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);
|
|
|
|
|
|
2026-04-08 16:44:41 +05:30
|
|
|
router.get("/getAll", jwtAuthMiddleware, getInquiries);
|
|
|
|
|
router.get("/:id", jwtAuthMiddleware, getInquiry);
|
2026-03-16 12:39:41 +05:30
|
|
|
router.delete("/:id", jwtAuthMiddleware, deleteInquiry);
|
|
|
|
|
|
|
|
|
|
export default router;
|