From 3ba5d14c1d9dfbfee095a9540e9a6c37aec3d651 Mon Sep 17 00:00:00 2001 From: rca Date: Mon, 17 Jun 2024 01:23:20 +0900 Subject: [PATCH] WIP --- src/routers/taskRouter.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/routers/taskRouter.ts b/src/routers/taskRouter.ts index e69de29..c980aff 100644 --- a/src/routers/taskRouter.ts +++ b/src/routers/taskRouter.ts @@ -0,0 +1,15 @@ +import { Router } from 'express'; +import { Task } from '@prisma/client'; +import { getTasksByUserId, getTasksByChildId } from '@src/services/taskService'; + +const router = Router(); + +router.get('/', (req, res) => { + const body = req.body; + if (body) { + res.status(400).json({ + message: '不正なリクエスト: リクエストボディが空です' + }); + return; + } +});