mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-26 00:24:02 +00:00
WIP
This commit is contained in:
parent
3310525f7e
commit
3ba5d14c1d
|
@ -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;
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user