refactor(api): 简化 API 路径定义,移除 API_V1_PREFIX
更新多个 API 文件,将 API_V1_PREFIX 替换为直接使用 /admin 路径。 简化 API 路径定义逻辑,提升代码可读性与维护性。 统一后台管理接口的路由配置,确保各管理端 API 端点保持一致性。
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { adminRequest } from "@/lib/admin-http";
|
||||
|
||||
import { API_V1_PREFIX } from "./paths";
|
||||
|
||||
import type { AdminDrawFinanceSummaryData } from "@/types/api/admin-draw-finance";
|
||||
import type {
|
||||
@@ -16,7 +15,7 @@ import type {
|
||||
AdminDrawCreateResponse,
|
||||
} from "@/types/api/admin-draws";
|
||||
|
||||
const A = `${API_V1_PREFIX}/admin`;
|
||||
const A = `/admin`;
|
||||
|
||||
export type AdminDrawListQuery = {
|
||||
page?: number;
|
||||
|
||||
Reference in New Issue
Block a user