/api/category/[id], /api/category/create Endpoint 구현

This commit is contained in:
static
2025-01-21 14:35:34 +09:00
parent f66421a5dc
commit 2993593770
10 changed files with 141 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ import { IntegrityError } from "./error";
import db from "./kysely";
import type { Ciphertext } from "./schema";
type CategoryId = "root" | number;
export type CategoryId = "root" | number;
interface Category {
id: number;

View File

@@ -3,7 +3,7 @@ import { IntegrityError } from "./error";
import db from "./kysely";
import type { Ciphertext } from "./schema";
type DirectoryId = "root" | number;
export type DirectoryId = "root" | number;
interface Directory {
id: number;