Add social links page

This commit is contained in:
alex 3
2023-11-05 23:53:51 -05:00
parent bdcd97576a
commit 50bca71a3f
9 changed files with 219 additions and 63 deletions
+12
View File
@@ -28,6 +28,18 @@ export const postRouter = createTRPCRouter({
});
}),
delete: protectedProcedure
.input(
z.string().min(1)
)
.query(async ({ctx, input}) => {
return ctx.db.post.delete({
where: {
id: input
}
})
}),
getOne: publicProcedure
.input(String)
.query(({ ctx, input }) => {