Skip to content

Commit

Permalink
hotfix: member 요청도 캐싱 안되도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
milk717 committed Dec 13, 2023
1 parent 2e9e3e0 commit f99ecbe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FE/src/apis/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { API } from '@constants/api';
export const getMemberInfo = async () => {
return await getAPIResponseData<MemberItemResDto>({
method: 'get',
url: API.MEMBER,
url: API.MEMBER(),
});
};

Expand Down
2 changes: 1 addition & 1 deletion FE/src/constants/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const API = {
LOGIN: '/auth/login',
LOGOUT: '/auth/logout',
REISSUE: () => `/auth/reissue?v=${Date.now()}`,
MEMBER: `/member`,
MEMBER: () => `/member?v=${Date.now()}`,
MEMBER_NAME: '/member/name',
VIDEO: '/video',
VIDEO_PRE_SIGNED: '/video/pre-signed',
Expand Down
2 changes: 1 addition & 1 deletion FE/src/mocks/handlers/T01Error/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { API } from '@constants/api';
import { http, HttpResponse } from 'msw';

const memberHandlers = [
http.get(API.MEMBER, () => {
http.get(API.MEMBER(), () => {
return HttpResponse.json(
{
message: '유효하지 않은 토큰입니다',
Expand Down
2 changes: 1 addition & 1 deletion FE/src/mocks/handlers/T02Error/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { http, HttpResponse } from 'msw';
import memberData from '../../data/member.json';

const memberHandlers = [
http.get(API.MEMBER, () => {
http.get(API.MEMBER(), () => {
return HttpResponse.json(memberData, { status: 200 });
}),
http.get(API.MEMBER_NAME, () => {
Expand Down
2 changes: 1 addition & 1 deletion FE/src/mocks/handlers/default/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { http, HttpResponse } from 'msw';
import memberData from '../../data/member.json';

const memberHandlers = [
http.get(API.MEMBER, () => {
http.get(API.MEMBER(), () => {
const isLogin =
new URLSearchParams(window.location.search).get('login') || 'true';
return HttpResponse.json(memberData, {
Expand Down
2 changes: 1 addition & 1 deletion FE/src/mocks/handlers/serverError/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { API } from '@constants/api';
import { http, HttpResponse } from 'msw';

const memberHandlers = [
http.get(API.MEMBER, () => {
http.get(API.MEMBER(), () => {
return HttpResponse.json(
{
message: '',
Expand Down

0 comments on commit f99ecbe

Please sign in to comment.