added endpoints for profile and feed

This commit is contained in:
Kai Ritthaler 2025-06-26 11:10:52 +02:00 committed by mrProm3theus
parent 9e6eeb27fd
commit 1800056918
22 changed files with 952 additions and 110 deletions

View file

@ -0,0 +1,15 @@
import { string, z } from "zod";
export const feedQuerySchema = z.object({
createdAt: z.string().datetime().optional(),
limit: z
.string()
.transform((val) => parseInt(val, 10))
.refine((num) => num > 0 && num <= 30, {
message: "Limit must be between 1 and 30",
})
.optional(),
});
export const updateBioSchema = z.object({
bio: z.string(),
});