File tree Expand file tree Collapse file tree 2 files changed +310
-210
lines changed
Expand file tree Collapse file tree 2 files changed +310
-210
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,14 @@ export const fetchExploreScripts = async (
4343
4444 const response = await api . get < ExploreScriptsResponse > ( "/scripts" , {
4545 headers,
46- withCredentials : true , // 쿠키 인증 시 필요
46+ withCredentials : true ,
4747 params : {
4848 sortType,
4949 } ,
5050 } ) ;
5151
5252 const { longPlay, shortPlay } = response . data ;
53+
5354 return {
5455 longPlay : Array . isArray ( longPlay ) ? longPlay : [ ] ,
5556 shortPlay : Array . isArray ( shortPlay ) ? shortPlay : [ ] ,
@@ -60,7 +61,6 @@ export const fetchExploreScripts = async (
6061 }
6162} ;
6263
63- // 좋아한 장편 작품 목록 조회
6464export const getLongWorks = async (
6565 page : number = 0 ,
6666 accessToken ?: string ,
@@ -85,7 +85,6 @@ export const getLongWorks = async (
8585 }
8686} ;
8787
88- // 좋아한 장편 작품 목록 조회
8988export const getShortWorks = async (
9089 page : number = 0 ,
9190 accessToken ?: string ,
You can’t perform that action at this time.
0 commit comments