31 lines
944 B
TypeScript
31 lines
944 B
TypeScript
import express from "express";
|
|
import { ButtonActionStandardController } from "../controllers/buttonActionStandardController";
|
|
import { authenticateToken } from "../middleware/authMiddleware";
|
|
|
|
const router = express.Router();
|
|
|
|
// 모든 라우트에 인증 미들웨어 적용
|
|
router.use(authenticateToken);
|
|
|
|
// 버튼 액션 표준 관리 라우트
|
|
router.get("/", ButtonActionStandardController.getButtonActions);
|
|
router.get(
|
|
"/categories",
|
|
ButtonActionStandardController.getButtonActionCategories
|
|
);
|
|
router.get("/:actionType", ButtonActionStandardController.getButtonAction);
|
|
router.post("/", ButtonActionStandardController.createButtonAction);
|
|
router.put("/:actionType", ButtonActionStandardController.updateButtonAction);
|
|
router.delete(
|
|
"/:actionType",
|
|
ButtonActionStandardController.deleteButtonAction
|
|
);
|
|
router.put(
|
|
"/sort-order/bulk",
|
|
ButtonActionStandardController.updateButtonActionSortOrder
|
|
);
|
|
|
|
export default router;
|
|
|
|
|