Files
deckyvault/apps/web/lib/api/hardware.ts
T
adrianbonpin cd72b7a948 refactor: convert to bun workspaces monorepo
- Move web app into apps/web/
- Create packages/shared/ with shared types
- Create plugins/decky-vault/ scaffold
- Root package.json manages workspaces only
2026-06-28 05:20:28 +08:00

12 lines
342 B
TypeScript

import { createCrudRoutes } from "./crud-builder"
import { hardware } from "@/lib/db/schema"
export const hardwareRoutes = createCrudRoutes(hardware, {
prefix: "/hardware",
name: "Hardware",
tags: ["Hardware"],
primaryKey: "slug",
auth: { read: "public", write: "admin", delete: "admin" },
filter: { fields: ["deviceType"] },
})