/api/category, /api/directory, /api/file 아래의 대부분의 Endpoint들을 tRPC로 마이그레이션

This commit is contained in:
static committed 2025-12-25 22:45:55 +09:00
1 parent a08ddf2c09
commit 6d95059450
45 files changed
+691 -1097

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import { unlink } from "fs/promises";
export const safeUnlink = async (path: string | null | undefined) => {
if (path) {
await unlink(path).catch(console.error);
}
};