2022-01-06 01:26:15 +00:00
|
|
|
import { Router } from "express";
|
|
|
|
import isAuth from "../middleware/isAuth";
|
|
|
|
|
|
|
|
import * as QueueController from "../controllers/QueueController";
|
|
|
|
|
|
|
|
const queueRoutes = Router();
|
|
|
|
|
|
|
|
queueRoutes.get("/queue", isAuth, QueueController.index);
|
|
|
|
|
|
|
|
queueRoutes.post("/queue", isAuth, QueueController.store);
|
|
|
|
|
2024-02-05 15:29:49 +00:00
|
|
|
queueRoutes.post("/queue/customization", QueueController.customization);
|
|
|
|
|
2022-01-06 01:26:15 +00:00
|
|
|
queueRoutes.get("/queue/:queueId", isAuth, QueueController.show);
|
|
|
|
|
|
|
|
queueRoutes.put("/queue/:queueId", isAuth, QueueController.update);
|
|
|
|
|
|
|
|
queueRoutes.delete("/queue/:queueId", isAuth, QueueController.remove);
|
|
|
|
|
|
|
|
export default queueRoutes;
|