auth-web/src/api/v1/configuration.ts

13 lines
393 B
TypeScript
Raw Normal View History

2024-10-24 10:42:44 +08:00
import { http } from '@/api/service/request';
import type { BaseResult } from '@/api/service/types';
/** 获取修改前端配置文件 */
2025-04-26 10:25:12 +08:00
export const getWebConfig = () => {
return http.request<BaseResult<any>>('get', '/config');
2024-10-24 10:42:44 +08:00
};
/** 更新web配置文件 */
2025-04-26 10:25:12 +08:00
export const updateWebConfiguration = (data: any) => {
return http.request<BaseResult<any>>('put', '/config', { data });
2024-10-24 10:42:44 +08:00
};