Skip to content

Commit

Permalink
일단 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Jul 31, 2024
1 parent a96a6d4 commit 87470c2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/pages/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ChannelService.boot({

export const Main = () => {
const navigate = useNavigate();
console.log('deploy test!!!!');
console.log('배포 확인용');

useEffect(() => {
const data = Cookie.get('accessToken');
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Team/deploy/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
};

Expand Down
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: `v1/deploy/all?teamId=${teamUUID}`,
url: `/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: 'v1/team/my-team',
url: '/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 = '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);
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 = 'v1/container';
const router = '/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 = 'v1/deploy';
const router = '/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 = '/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}`);
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 = 'v1/team';
const router = '/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 = 'v1/user';
const router = '/user';

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

0 comments on commit 87470c2

Please sign in to comment.