I-36 Remove dependency to PATH const

This commit is contained in:
Reginald Bondoc
2022-11-30 23:39:23 +01:00
parent f9bf418bf8
commit d8aa5b5ff4
57 changed files with 54 additions and 125 deletions
@@ -1,4 +1,3 @@
import { PATH } from "~/const";
import SecurityClient from "~/utilities/SecurityClient";
/**
@@ -15,7 +14,7 @@ const addServiceToken = ({
encryptedKey,
nonce,
}) => {
return SecurityClient.fetchCall(PATH + "/api/v1/service-token/", {
return SecurityClient.fetchCall("/api/v1/service-token/", {
method: "POST",
headers: {
"Content-Type": "application/json",
@@ -1,4 +1,3 @@
import { PATH } from "~/const";
import SecurityClient from "~/utilities/SecurityClient";
/**
@@ -8,7 +7,7 @@ import SecurityClient from "~/utilities/SecurityClient";
*/
const getServiceTokens = ({ workspaceId }) => {
return SecurityClient.fetchCall(
PATH + "/api/v1/workspace/" + workspaceId + "/service-tokens",
"/api/v1/workspace/" + workspaceId + "/service-tokens",
{
method: "GET",
headers: {