diff --git a/src/routers/task/historyRouter.ts b/src/routers/task/historyRouter.ts index b7e0188..11f0b34 100644 --- a/src/routers/task/historyRouter.ts +++ b/src/routers/task/historyRouter.ts @@ -1,5 +1,19 @@ import { Router } from 'express'; -const router = Router(); +const parentRouter = Router(); // 親専用エンドポイント +const commonRouter = Router(); // 共用エンドポイント -export default router; +commonRouter.get("/", (req, res) => { + res.status(501).send("WIP"); + // TODO: 履歴一覧 +}); + +parentRouter.delete("/:historyId", (req, res) => { + res.status(501).send("WIP"); + // TODO: 履歴削除 +}); + +parentRouter.post("/", (req, res) => { + res.status(501).send("WIP"); + // TODO: 履歴手動追加 +});