Download apps/web-antd/src/api/core/menu.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/web-antd/src/api/core/menu.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/apps/web-antd/src/api/core/menu.ts
-
curl -L -o menu.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/web-antd/src/api/core/menu.ts
290 Bytes
| import type { RouteRecordStringComponent } from '@vben/types'; | |
| import { requestClient } from '#/api/request'; | |
| /** | |
| * 获取用户所有菜单 → GET /admin/auth/menus | |
| */ | |
| export async function getAllMenusApi() { | |
| return requestClient.get<RouteRecordStringComponent[]>('/auth/menus'); | |
| } | |