Skip to content

Commit

Permalink
chore :: v1 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Jul 31, 2024
1 parent 87470c2 commit a2931cd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/Team/deploy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const TeamDeploy = () => {

const { data } = useCustomQuery({
queryKey: ['teamUUID'],
url: `/deploy/all?teamId=${teamUUID}`,
url: `/v1/deploy/all?teamId=${teamUUID}`,
select: (res) => res.data,
});
const count = Math.ceil(data?.deploy_list.length / 4) || 1;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Team/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Team = () => {

const { data: teamList }: TeamCheckType = useCustomQuery({
queryKey: ['team-list'],
url: '/team/my-team',
url: '/v1/team/my-team',
select: (res) => res?.data.team_list,
});

Expand Down
2 changes: 1 addition & 1 deletion src/utils/apis/auth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SignInType, SignUpType } from '../types/authType';
import axios from 'axios';

const router = 'auth';
const router = 'v1/auth';

export const login = async (data: SignInType) => {
return await axios.post(`${import.meta.env.VITE_SERVER_BASE_URL}/${router}/login`, data);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/apis/container.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ContainerEnvType } from '../types/containerType';
import { instance } from './axios';

const router = '/container';
const router = 'v1/container';

export const getAllContainer = async (deployUUID: string) => {
return await instance.get(`${router}?deployId=${deployUUID}`);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/apis/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DeployCreateType } from '../types/deployType';
import { instance } from './axios';

const router = '/deploy';
const router = 'v1/deploy';

export const deployCreate = async (teamUUID: string, data: DeployCreateType) => {
return await instance.post(`${router}?team_id=${teamUUID}`, data);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/apis/env.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance } from './axios';

const router = '//container/environment-variable';
const router = 'v1/container/environment-variable';

export const getEnv = async (deployUUID: string, env: string) => {
return await instance.get(`${router}?deployId=${deployUUID}&environment=${env}`);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/apis/team.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TeamCreateType } from '../types/teamType';
import { instance } from './axios';

const router = '/team';
const router = 'v1/team';

export const teamCheck = async () => {
return await instance.get(`${router}/my-team`);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/apis/user.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance } from './axios';

const router = '/user';
const router = 'v1/user';

export const getUser = async () => {
return await instance.get(`${router}/all`);
Expand Down

0 comments on commit a2931cd

Please sign in to comment.