-
Notifications
You must be signed in to change notification settings - Fork 2k
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
4031faf
commit 2724169
Showing
2 changed files
with
8 additions
and
13 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
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 } }); | ||
} |
2724169
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
soybean-admin – ./
soybean-admin-eta.vercel.app
soybean-admin-soybeanjs.vercel.app
soybean-admin-git-main-soybeanjs.vercel.app