Skip to content

Commit 20aac5d

Browse files
refactor: hacer la peticion tipo PUT y no PATCH
1 parent cf1d6bd commit 20aac5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/routes/tasks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ taskApp.post('/', zCreateTaskValidator, async (c) => {
3939
return c.json({ data }, 201);
4040
});
4141

42-
// REORDER tasks (must be before /:taskId to avoid route conflict)
43-
taskApp.patch('/reorder', zReorderValidator, async (c) => {
42+
// REORDER tasks
43+
taskApp.put('/reorder', zReorderValidator, async (c) => {
4444
const items = c.req.valid('json');
4545
const { error } = await reorderTasks(c, items);
4646

0 commit comments

Comments
 (0)