Created a skeleton of the api
This commit is contained in:
12
src/server/api/routers/tasks.ts
Normal file
12
src/server/api/routers/tasks.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { z } from "zod";
|
||||
import { taskCreationFormSchema } from "~/lib/schemas/task-creation-form";
|
||||
|
||||
import { createTRPCRouter, protectedProcedure } from "~/server/api/trpc";
|
||||
|
||||
export const tasksRouter = createTRPCRouter({
|
||||
create: protectedProcedure
|
||||
.input(taskCreationFormSchema)
|
||||
.mutation(async ({ ctx, input }) => {
|
||||
//
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user