mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-18 17:46:38 +08:00
21 lines
519 B
TypeScript
21 lines
519 B
TypeScript
import { alova } from '../request';
|
|
|
|
/** get constant routes */
|
|
export function fetchGetConstantRoutes() {
|
|
return alova.Get<Api.Route.MenuRoute[]>('/route/getConstantRoutes');
|
|
}
|
|
|
|
/** get user routes */
|
|
export function fetchGetUserRoutes() {
|
|
return alova.Get<Api.Route.UserRoute>('/route/getUserRoutes');
|
|
}
|
|
|
|
/**
|
|
* whether the route is exist
|
|
*
|
|
* @param routeName route name
|
|
*/
|
|
export function fetchIsRouteExist(routeName: string) {
|
|
return alova.Get<boolean>('/route/isRouteExist', { params: { routeName } });
|
|
}
|