mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
use api core
This commit is contained in:
parent
2efcc8a3cd
commit
c593d8c390
@ -107,7 +107,7 @@ export default () => {
|
|||||||
const [apiNamespacesKeys, setApiNamespacesKeys] = React.useState([])
|
const [apiNamespacesKeys, setApiNamespacesKeys] = React.useState([])
|
||||||
|
|
||||||
const loadData = () => {
|
const loadData = () => {
|
||||||
const apiNamespaces = app.api.namespaces
|
const apiNamespaces = app.cores.api.namespaces
|
||||||
|
|
||||||
setApiNamespacesKeys(Object.keys(apiNamespaces))
|
setApiNamespacesKeys(Object.keys(apiNamespaces))
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ export default () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const generateEndpointsMapTabs = (apiNamespaceKey) => {
|
const generateEndpointsMapTabs = (apiNamespaceKey) => {
|
||||||
const endpoints = app.api.namespaces[apiNamespaceKey].endpoints
|
const endpoints = app.cores.api.namespaces[apiNamespaceKey].endpoints
|
||||||
|
|
||||||
return Object.keys(endpoints).map((method, index) => {
|
return Object.keys(endpoints).map((method, index) => {
|
||||||
return <antd.Tabs
|
return <antd.Tabs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user