diff --git a/src/routes/todo.tsx b/src/routes/todo.tsx index ff24520..c9b06c3 100644 --- a/src/routes/todo.tsx +++ b/src/routes/todo.tsx @@ -21,7 +21,6 @@ const deleteTodoSchema = z.object({ id: z.uuid(), }) -// Server Functions - CRUD 操作 const getTodos = createServerFn({ method: 'GET' }).handler(async () => { const todos = await db.query.todoTable.findMany({ orderBy: (todos, { desc }) => [desc(todos.createdAt)],