mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-26 18:00:36 +01:00
Add cookie for like and use valibot
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { z } from 'zod'
|
||||
import { object, string } from 'valibot'
|
||||
import { publicProcedure, router } from '~/server/trpc/trpc'
|
||||
|
||||
const PostSchema = z.object({
|
||||
slug: z.string(),
|
||||
const PostSchema = object({
|
||||
slug: string(),
|
||||
})
|
||||
|
||||
export default router({
|
||||
|
||||
Reference in New Issue
Block a user