use api core

This commit is contained in:
SrGooglo 2023-02-24 14:37:24 +00:00
parent 2efcc8a3cd
commit c593d8c390

View File

@ -107,7 +107,7 @@ export default () => {
const [apiNamespacesKeys, setApiNamespacesKeys] = React.useState([])
const loadData = () => {
const apiNamespaces = app.api.namespaces
const apiNamespaces = app.cores.api.namespaces
setApiNamespacesKeys(Object.keys(apiNamespaces))
@ -115,7 +115,7 @@ export default () => {
}
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 <antd.Tabs