From 25ae05fea8210418a35047de2ece66c1cf64db26 Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Fri, 17 Feb 2023 15:46:18 +0200 Subject: [PATCH] fix incorrect path (#3146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## About the changes Closes # ### Important files ## Discussion points Signed-off-by: andreas-unleash --- .../actions/useProjectApiTokensApi/useProjectApiTokensApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/api/actions/useProjectApiTokensApi/useProjectApiTokensApi.ts b/frontend/src/hooks/api/actions/useProjectApiTokensApi/useProjectApiTokensApi.ts index 53baba7924..a6e0e6dfea 100644 --- a/frontend/src/hooks/api/actions/useProjectApiTokensApi/useProjectApiTokensApi.ts +++ b/frontend/src/hooks/api/actions/useProjectApiTokensApi/useProjectApiTokensApi.ts @@ -26,7 +26,7 @@ const useProjectApiTokensApi = () => { }; const createToken = async (newToken: IApiTokenCreate, project: string) => { - const path = `api/admin/project/${project}/api-tokens`; + const path = `api/admin/projects/${project}/api-tokens`; const req = createRequest(path, { method: 'POST', body: JSON.stringify(newToken),