feat: create route to return title information

Summary:

Test Plan:
This commit is contained in:
2024-05-15 23:03:08 -04:00
parent 695a1bb4cd
commit 68c082493e
18 changed files with 1367 additions and 4 deletions

View File

@@ -8,3 +8,11 @@ export const SuccessResponseSchema = <T extends ZodSchema>(schema?: T) => {
return z.object({ success: z.literal(true), result: schema });
};
export const ErrorResponseSchema = z.object({
success: z.literal(false),
});
export const AniListIdSchema = z
.number({ coerce: true })
.openapi({ type: "integer" });