重构 更规范性的文件组织

This commit is contained in:
Chen committed 2025-12-03 15:52:51 +08:00
1 parent 59abbf30d9
commit ea6c87ad25
53 files changed
+3274 -2110

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
/**
* API 统一导出
*/
import * as library from './endpoints/library';
import * as image from './endpoints/image';
import * as scan from './endpoints/scan';
export const libraryAPI = library;
export const imageAPI = image;
export const scanAPI = scan;
export { api, APIError } from './client';
// watchAPI 空实现(已废弃)
export const watchAPI = {
start: () => Promise.resolve({}),
stop: () => Promise.resolve({}),
status: () => Promise.resolve({ watching: false }),
list: () => Promise.resolve({ watchers: [] })
};