Files
lotteryAdmin/src/api/paths.ts
kang d90ca3c66b refactor(api): 简化 API 路径定义,移除 API_V1_PREFIX
更新多个 API 文件,将 API_V1_PREFIX 替换为直接使用 /admin 路径。
简化 API 路径定义逻辑,提升代码可读性与维护性。
统一后台管理接口的路由配置,确保各管理端 API 端点保持一致性。
2026-05-29 10:29:11 +08:00

6 lines
242 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** Laravel `routes/api.php``api` 前缀 + `v1` 分组;与 {@link adminHttp} `baseURL` 一致。 */
export const LOTTERY_API_V1_BASE = "/api/v1";
/** 后台路由在 `v1` 下的 `admin` 分组 */
export const ADMIN_API_BASE = "/admin";