From 748b0b08ef173a83e97ba105ff5636cbc9192c26 Mon Sep 17 00:00:00 2001 From: Zhigang Wang Date: Thu, 6 Jun 2024 15:08:54 -0700 Subject: [PATCH] make the backend api naming consistant by always using - instead of - --- frontend/src/utils/backend/history.js | 2 +- frontend/src/utils/backend/providerHub.js | 2 +- frontend/src/utils/backend/userAuth.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/utils/backend/history.js b/frontend/src/utils/backend/history.js index 9d7d90c..113b0e9 100644 --- a/frontend/src/utils/backend/history.js +++ b/frontend/src/utils/backend/history.js @@ -5,7 +5,7 @@ class HistoryApi { static fetchClosedWorkspackeProjects() { let jwt = userUtils.getJwtToken() const request = backendAxios.post( - '/api/user/history/fetch_workspace_closed_projects', + '/api/user/history/fetch-workspace-closed-projects', {}, { headers: { Authorization: `Bearer ${jwt}` } diff --git a/frontend/src/utils/backend/providerHub.js b/frontend/src/utils/backend/providerHub.js index 66aa0c2..8a3683d 100644 --- a/frontend/src/utils/backend/providerHub.js +++ b/frontend/src/utils/backend/providerHub.js @@ -5,7 +5,7 @@ class ProviderHubApi { static fetchProvidersForHub() { let jwt = userUtils.getJwtToken() const request = backendAxios.post( - '/api/providers/fetch_providers_for_hub', + '/api/providers/fetch-providers-for-hub', {}, { headers: { Authorization: `Bearer ${jwt}` } diff --git a/frontend/src/utils/backend/userAuth.js b/frontend/src/utils/backend/userAuth.js index d1f7e6e..d7cf07d 100644 --- a/frontend/src/utils/backend/userAuth.js +++ b/frontend/src/utils/backend/userAuth.js @@ -120,7 +120,7 @@ class UserAuthApi { static signout(identity) { let jwt = userUtils.getJwtToken() const request = backendAxios.post( - '/api/user/signin/sign_out', + '/api/user/signin/sign-out', { identity: identity },