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