-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dca53b0
commit c007935
Showing
1 changed file
with
7 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
import { request } from '../request'; | ||
|
||
/** | ||
* Get user routes | ||
* | ||
* @param example Whether to use example data, default: 0 | ||
*/ | ||
export function fetchGetUserRoutes(example: '0' | '1' = '0') { | ||
return request<Api.Route.UserRoute>({ url: '/route/getUserRoutes', params: { example } }); | ||
/** get user routes */ | ||
export function fetchGetUserRoutes() { | ||
return request<Api.Route.UserRoute>({ url: '/route/getUserRoutes' }); | ||
} | ||
|
||
/** | ||
* Whether the route is exist | ||
* whether the route is exist | ||
* | ||
* @param routeName Route name | ||
* @param example Whether to use example data, default: 0 | ||
* @param routeName route name | ||
*/ | ||
export function fetchIsRouteExist(routeName: string, example: '0' | '1' = '0') { | ||
return request<boolean>({ url: '/route/isRouteExist', params: { routeName, example } }); | ||
export function fetchIsRouteExist(routeName: string) { | ||
return request<boolean>({ url: '/route/isRouteExist', params: { routeName } }); | ||
} |