Files
flypic/frontend/src/api/index.js
T

30 lines
853 B
JavaScript

/**
* API 统一导出
*/
import * as library from './endpoints/library';
import * as image from './endpoints/image';
import * as scan from './endpoints/scan';
import { fileAPI } from './file';
import { settingsAPI } from './endpoints/settings';
import { hubAPI } from './endpoints/hub';
import * as batch from './endpoints/batch';
import { aigenAPI } from './endpoints/aigen';
export const libraryAPI = library;
export const imageAPI = image;
export const scanAPI = scan;
export { fileAPI };
export { settingsAPI, hubAPI, aigenAPI };
export const batchAPI = batch;
export { api, APIError } from './client';
// watchAPI 空实现(已废弃)
export const watchAPI = {
start: () => Promise.resolve({}),
stop: () => Promise.resolve({}),
status: () => Promise.resolve({ watching: false }),
list: () => Promise.resolve({ watchers: [] })
};