ref(frontend): update to absolute import

This commit is contained in:
이강준
2022-11-26 18:19:41 +09:00
parent 001df70e26
commit 22c184840c
73 changed files with 2029 additions and 1287 deletions
+19 -17
View File
@@ -1,4 +1,4 @@
import SecurityClient from "../../../components/utilities/SecurityClient.js";
import SecurityClient from "~/utilities/SecurityClient.js";
import { PATH } from "../../../const.js";
/**
@@ -8,26 +8,28 @@ import { PATH } from "../../../const.js";
* @returns
*/
const getSecrets = async (workspaceId, env) => {
return SecurityClient.fetchCall(PATH + "/api/v1/secret/" +
workspaceId +
"?" +
new URLSearchParams({
environment: env,
channel: "web",
return SecurityClient.fetchCall(
PATH +
"/api/v1/secret/" +
workspaceId +
"?" +
new URLSearchParams({
environment: env,
channel: "web",
}),
{
method: "GET",
headers: {
"Content-Type": "application/json",
},
}
), {
method: "GET",
headers: {
"Content-Type": "application/json",
},
})
.then(async res => {
).then(async (res) => {
if (res.status == 200) {
return (await res.json());
return await res.json();
} else {
console.log('Failed to get project secrets');
console.log("Failed to get project secrets");
}
})
});
};
export default getSecrets;