API and rule screen working

This commit is contained in:
Owen
2025-02-08 17:38:30 -05:00
parent 8f96d0795c
commit 4a6da91faf
6 changed files with 490 additions and 9 deletions

View File

@@ -12,6 +12,10 @@ import { fromError } from "zod-validation-error";
const deleteResourceRuleSchema = z
.object({
ruleId: z
.string()
.transform(Number)
.pipe(z.number().int().positive()),
resourceId: z
.string()
.transform(Number)
.pipe(z.number().int().positive())