mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-02 08:07:40 -05:00
Move app to apps/web-react in pnpm workspace layout
This commit is contained in:
11
apps/web-react/app/features/api/api-schemas.ts
Normal file
11
apps/web-react/app/features/api/api-schemas.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { z } from "zod";
|
||||
import { _action } from "~/utils/zod";
|
||||
|
||||
export const apiActionSchema = z.union([
|
||||
z.object({
|
||||
_action: _action("GENERATE_READ"),
|
||||
}),
|
||||
z.object({
|
||||
_action: _action("GENERATE_WRITE"),
|
||||
}),
|
||||
]);
|
||||
Reference in New Issue
Block a user