feat: dashboard interface

This commit is contained in:
2026-03-25 12:47:59 +01:00
parent 0c8677f514
commit 9ec4c5319c
16 changed files with 356 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ import { eq } from "drizzle-orm";
import { z } from "zod";
const paramsSchema = z.object({
id: z.number(),
id: z.string().transform(Number),
});
export default defineEventHandler(async (event) => {

View File

@@ -4,7 +4,7 @@ import { eq } from "drizzle-orm";
import { z } from "zod";
const paramsSchema = z.object({
id: z.number(),
id: z.string().transform(Number),
});
export default defineEventHandler(async (event) => {

View File

@@ -4,7 +4,7 @@ import { eq } from "drizzle-orm";
import { z } from "zod";
const paramsSchema = z.object({
id: z.number(),
id: z.string().transform(Number),
});
const bodySchema = z.object({

View File

@@ -5,7 +5,8 @@ import { z } from "zod";
const bodySchema = z.object({
name: z.string().min(1),
path: z.string().min(1),
url: z.url().min(1),
url: z.url(),
disabled: z.boolean().optional(),
});
export default defineEventHandler(async (event) => {