chore: file formatting
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import express from "express";
|
||||
import express from 'express';
|
||||
import {
|
||||
// Categories
|
||||
getAllCategories,
|
||||
@@ -16,24 +16,24 @@ import {
|
||||
// Inquiries
|
||||
createPackageInquiry,
|
||||
getAllInquiries,
|
||||
} from "../controllers/healthCheck.controller.js";
|
||||
} from '../controllers/healthCheck.controller.js';
|
||||
|
||||
import jwtAuthMiddleware from "../middleware/auth.js";
|
||||
import jwtAuthMiddleware from '../middleware/auth.js';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.get("/packages", getAllPackages);
|
||||
router.get("/packages/:slug", getPackageBySlug);
|
||||
router.get("/categories", getAllCategories);
|
||||
router.post("/inquiry", createPackageInquiry);
|
||||
router.get('/packages', getAllPackages);
|
||||
router.get('/packages/:slug', getPackageBySlug);
|
||||
router.get('/categories', getAllCategories);
|
||||
router.post('/inquiry', createPackageInquiry);
|
||||
|
||||
router.get("/inquiries", jwtAuthMiddleware, getAllInquiries);
|
||||
router.post("/", jwtAuthMiddleware, createPackage);
|
||||
router.patch("/:id", jwtAuthMiddleware, updatePackage);
|
||||
router.delete("/:id", jwtAuthMiddleware, deletePackage);
|
||||
router.get('/inquiries', jwtAuthMiddleware, getAllInquiries);
|
||||
router.post('/', jwtAuthMiddleware, createPackage);
|
||||
router.patch('/:id', jwtAuthMiddleware, updatePackage);
|
||||
router.delete('/:id', jwtAuthMiddleware, deletePackage);
|
||||
|
||||
router.post("/categories", jwtAuthMiddleware, createCategory);
|
||||
router.patch("/categories/:id", jwtAuthMiddleware, updateCategory);
|
||||
router.delete("/categories/:id", jwtAuthMiddleware, deleteCategory);
|
||||
router.post('/categories', jwtAuthMiddleware, createCategory);
|
||||
router.patch('/categories/:id', jwtAuthMiddleware, updateCategory);
|
||||
router.delete('/categories/:id', jwtAuthMiddleware, deleteCategory);
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user