-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from 9oormthonUniv-seoultech/develop
2차 배포
- Loading branch information
Showing
50 changed files
with
1,953 additions
and
1,113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export type MyLikedBooth = { | ||
photoBoothId: number; | ||
name: string; | ||
rating: number; | ||
feature: string; | ||
featureCount: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { AxiosError } from "axios"; | ||
import { Post } from "."; | ||
|
||
export const createLink = async (albumId: string, accessToken: string) => { | ||
try { | ||
const res = await Post<string>( | ||
`/api/v1/album/share?albumId=${albumId}`, | ||
{}, | ||
{ | ||
headers: { Authorization: `Bearer ${accessToken}` }, | ||
} | ||
); | ||
|
||
return res.data.payload; | ||
} catch (error) {} | ||
}; | ||
|
||
export const saveShare = async (accessToken: string, shareId: string) => { | ||
try { | ||
const res = await Post( | ||
`/api/v1/album/${shareId}/saveShare`, | ||
{}, | ||
{ | ||
headers: { Authorization: `Bearer ${accessToken}` }, | ||
} | ||
); | ||
|
||
return res.data; | ||
} catch (error) { | ||
if (error instanceof AxiosError) { | ||
return error.status; | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.