This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-paimon-webui.git


The following commit(s) were added to refs/heads/main by this push:
     new 7093cb2  [Bugfix] Fix request path of list catalogs interface (#154)
7093cb2 is described below

commit 7093cb2f0f54d863864f1092cd5e51c26a5b80ce
Author: zhoulii <[email protected]>
AuthorDate: Wed Jan 24 14:48:27 2024 +0800

    [Bugfix] Fix request path of list catalogs interface (#154)
---
 paimon-web-ui-new/mock/modules/metadata.js        | 2 +-
 paimon-web-ui-new/src/api/models/catalog/index.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/paimon-web-ui-new/mock/modules/metadata.js 
b/paimon-web-ui-new/mock/modules/metadata.js
index d8ae6e9..ff8f86a 100644
--- a/paimon-web-ui-new/mock/modules/metadata.js
+++ b/paimon-web-ui-new/mock/modules/metadata.js
@@ -16,7 +16,7 @@ specific language governing permissions and limitations
 under the License. */
 
 module.exports = (mockUtil) => ({
-  '/catalog/getAllCatalogs': mockUtil({
+  '/catalog/list': mockUtil({
     code: 200,
     msg: 'Successfully',
     'data|5': [
diff --git a/paimon-web-ui-new/src/api/models/catalog/index.ts 
b/paimon-web-ui-new/src/api/models/catalog/index.ts
index 301b028..a9856a8 100644
--- a/paimon-web-ui-new/src/api/models/catalog/index.ts
+++ b/paimon-web-ui-new/src/api/models/catalog/index.ts
@@ -44,7 +44,7 @@ export * from './types'
  * # Get all catalog
  */
 export const getAllCatalogs = () => {
-  return httpRequest.get<unknown, 
ResponseOptions<Catalog[]>>('/catalog/getAllCatalogs')
+  return httpRequest.get<unknown, ResponseOptions<Catalog[]>>('/catalog/list')
 }
 
 /**

Reply via email to