Skip to content

Commit

Permalink
[refact]: delete test accessToken
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1nna committed Dec 16, 2024
1 parent 3c1531d commit 087c95e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
16 changes: 0 additions & 16 deletions src/api/comment/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ const getComments = (postId: number) => {
const res = authInstance<Comment.CommentResponse[] | []>({
method: 'get',
url: `/posts/${postId}/comments`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -16,10 +12,6 @@ const likeComment = (commentId: number) => {
const res = authInstance({
method: 'post',
url: `/comments/${commentId}/likes`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -28,10 +20,6 @@ const dislikeComment = (commentId: number) => {
const res = authInstance({
method: 'delete',
url: `/comments/${commentId}/likes`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -42,8 +30,6 @@ const writeComment = (postId: number, data: string) => {
url: `/posts/${postId}/comments`,
data,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
'Content-Type': 'text/plain',
},
});
Expand All @@ -57,8 +43,6 @@ const writeReplyComment = (postId: string, parentId: string, data: string) => {
params: { parentId },
data,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
'Content-Type': 'text/plain',
},
});
Expand Down
24 changes: 0 additions & 24 deletions src/api/feed/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ const getFeeds = (page: number) => {
const res = authInstance<Feed.FeedsResponse>({
method: 'get',
url: `/feeds?page=${page}`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -16,10 +12,6 @@ const getDetailCommonFeed = (postId: string) => {
const res = authInstance<Feed.FeedData>({
method: 'get',
url: `/posts/${postId}/basic-post`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -29,10 +21,6 @@ const createCommonFeed = (data: Feed.BasicPostRequestBody) => {
method: 'post',
url: `/posts/basic`,
data,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -41,10 +29,6 @@ const likeFeed = (postId: number) => {
const res = authInstance({
method: 'post',
url: `/posts/${postId}/likes`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -53,10 +37,6 @@ const dislikeFeed = (postId: number) => {
const res = authInstance({
method: 'delete',
url: `/posts/${postId}/likes`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -65,10 +45,6 @@ const deleteFeed = (postId: number) => {
const res = authInstance({
method: 'delete',
url: `/posts/${postId}`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand Down
12 changes: 0 additions & 12 deletions src/api/follow/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ const followUser = (data: { fromUserId: number; toUserId: number }) => {
method: 'post',
url: `/users/${data.fromUserId}/follows`,
data,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -18,10 +14,6 @@ const unfollowUser = (data: { fromUserId: number; toUserId: number }) => {
method: 'delete',
url: `/users/${data.fromUserId}/follows`,
data,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand All @@ -37,10 +29,6 @@ const getFollowingList = (userId: number) => {
const res = authInstance<FollowingRes[]>({
method: 'get',
url: `/users/${userId}/followings`,
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdHkiOiJOT1JNQUxfVVNFUiIsInRva2VuVHlwZSI6IkFDQ0VTU19UT0tFTiIsInN1YiI6IjEiLCJleHAiOjE3NDI3MTUzMDV9.eFVccnbsYRqpJFzg2rL5LNgsMLoEFPESoj3W4e5bgm2Uzy7-DCjA6hgixDZ8MYgXeV6q7VetKQTab-pH-g0caw',
},
});
return res;
};
Expand Down

0 comments on commit 087c95e

Please sign in to comment.