diff --git a/src/pages/Main.tsx b/src/pages/Main.tsx index 515f7da..f54d6e0 100644 --- a/src/pages/Main.tsx +++ b/src/pages/Main.tsx @@ -16,7 +16,7 @@ ChannelService.boot({ export const Main = () => { const navigate = useNavigate(); - console.log('deploy test!!!!'); + console.log('배포 확인용'); useEffect(() => { const data = Cookie.get('accessToken'); diff --git a/src/pages/Team/deploy/Create.tsx b/src/pages/Team/deploy/Create.tsx index 3ff0c6c..510f769 100644 --- a/src/pages/Team/deploy/Create.tsx +++ b/src/pages/Team/deploy/Create.tsx @@ -40,7 +40,7 @@ export const TeamDeployCreate = () => { console.log(data); deployCreate(teamUUID, data).then((res) => { - link(`v1/team/${teamUUID}/deploy/${res.data.deploy_id}`); + link(`/team/${teamUUID}/deploy/${res.data.deploy_id}`); }); }; diff --git a/src/pages/Team/deploy/index.tsx b/src/pages/Team/deploy/index.tsx index d730b15..3d31a13 100644 --- a/src/pages/Team/deploy/index.tsx +++ b/src/pages/Team/deploy/index.tsx @@ -15,7 +15,7 @@ export const TeamDeploy = () => { const { data } = useCustomQuery({ queryKey: ['teamUUID'], - url: `v1/deploy/all?teamId=${teamUUID}`, + url: `/deploy/all?teamId=${teamUUID}`, select: (res) => res.data, }); const count = Math.ceil(data?.deploy_list.length / 4) || 1; diff --git a/src/pages/Team/index.tsx b/src/pages/Team/index.tsx index c800fd3..1af426f 100644 --- a/src/pages/Team/index.tsx +++ b/src/pages/Team/index.tsx @@ -15,7 +15,7 @@ export const Team = () => { const { data: teamList }: TeamCheckType = useCustomQuery({ queryKey: ['team-list'], - url: 'v1/team/my-team', + url: '/team/my-team', select: (res) => res?.data.team_list, }); diff --git a/src/utils/apis/auth.ts b/src/utils/apis/auth.ts index 249d408..328cc9c 100644 --- a/src/utils/apis/auth.ts +++ b/src/utils/apis/auth.ts @@ -1,7 +1,7 @@ import { SignInType, SignUpType } from '../types/authType'; import axios from 'axios'; -const router = 'v1/auth'; +const router = 'auth'; export const login = async (data: SignInType) => { return await axios.post(`${import.meta.env.VITE_SERVER_BASE_URL}/${router}/login`, data); diff --git a/src/utils/apis/container.ts b/src/utils/apis/container.ts index 49a790f..8f63efc 100644 --- a/src/utils/apis/container.ts +++ b/src/utils/apis/container.ts @@ -1,7 +1,7 @@ import { ContainerEnvType } from '../types/containerType'; import { instance } from './axios'; -const router = 'v1/container'; +const router = '/container'; export const getAllContainer = async (deployUUID: string) => { return await instance.get(`${router}?deployId=${deployUUID}`); diff --git a/src/utils/apis/deploy.ts b/src/utils/apis/deploy.ts index 05a599e..412d24a 100644 --- a/src/utils/apis/deploy.ts +++ b/src/utils/apis/deploy.ts @@ -1,7 +1,7 @@ import { DeployCreateType } from '../types/deployType'; import { instance } from './axios'; -const router = 'v1/deploy'; +const router = '/deploy'; export const deployCreate = async (teamUUID: string, data: DeployCreateType) => { return await instance.post(`${router}?team_id=${teamUUID}`, data); diff --git a/src/utils/apis/env.ts b/src/utils/apis/env.ts index 319a4f6..2475b6f 100644 --- a/src/utils/apis/env.ts +++ b/src/utils/apis/env.ts @@ -1,6 +1,6 @@ import { instance } from './axios'; -const router = '/v1/container/environment-variable'; +const router = '//container/environment-variable'; export const getEnv = async (deployUUID: string, env: string) => { return await instance.get(`${router}?deployId=${deployUUID}&environment=${env}`); diff --git a/src/utils/apis/team.ts b/src/utils/apis/team.ts index 6e9c053..7fad584 100644 --- a/src/utils/apis/team.ts +++ b/src/utils/apis/team.ts @@ -1,7 +1,7 @@ import { TeamCreateType } from '../types/teamType'; import { instance } from './axios'; -const router = 'v1/team'; +const router = '/team'; export const teamCheck = async () => { return await instance.get(`${router}/my-team`); diff --git a/src/utils/apis/user.ts b/src/utils/apis/user.ts index 3ebf1d4..049eb0a 100644 --- a/src/utils/apis/user.ts +++ b/src/utils/apis/user.ts @@ -1,6 +1,6 @@ import { instance } from './axios'; -const router = 'v1/user'; +const router = '/user'; export const getUser = async () => { return await instance.get(`${router}/all`);