-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[김주동] sprint11 #131
Merged
GANGYIKIM
merged 40 commits into
codeit-bootcamp-frontend:Next-김주동
from
joodongkim:Next-김주동-sprint11
Nov 11, 2024
The head ref may contain hidden characters: "Next-\uAE40\uC8FC\uB3D9-sprint11"
Merged
[김주동] sprint11 #131
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
93a0e93
chore: 머지 후 브랜치 삭제 github action 추가
withyj-codeit 17be37c
Initial commit from Create Next App
withyj-codeit 7df9c2b
fix: 머지 후 브랜치 삭제 github action 수정
hanseulhee 66f3ba6
env: workflows 폴더로 이동
hanseulhee 3c68d4e
First commit Sprint Mission5 on React
joodongkim d48b01a
First commit Sprint Mission5 on React (#78)
joodongkim 675f9b0
Sprint mission 6 commit.
joodongkim 20fd6da
Sprint Mission 6 Update 1
joodongkim 6ebe241
update sprint mission 6
joodongkim e111b83
Merge pull request #1 from joodongkim/React-김주동-sprint6
joodongkim 4bfa053
Sprint mission 6 update commit.
joodongkim 3164f59
Merge branch 'React-김주동' into React-김주동-sprint6
joodongkim 2fdcae3
Apply using Sprint mission 6 update commit.
joodongkim 10b590a
delete .bak files
joodongkim 2032cc0
Update Comments
joodongkim 1437689
modify ItemComment
joodongkim 4f9c678
React 김주동 sprint7 (#97)
joodongkim 0b131e7
Update pull conflict
joodongkim 0c5bb5c
refactoring to typescript
joodongkim 1fe9f12
refactoring to typescript
joodongkim a5ac8a6
add LoginPage
joodongkim 85b532b
Change to Next-김주동
joodongkim b7bd99e
First build using upstrem Next-김주동
joodongkim bee7f20
First commit
joodongkim a9f37e5
First commit using Next-김주동-sprint9
joodongkim 41f70e7
REFACTOR: styled-components
joodongkim e4208c1
Merge branch 'Next-김주동' of https://github.com/joodongkim/10-Sprint-Mi…
joodongkim 3312289
change from React.FC<type> to ({}:type)
joodongkim 11218fa
feat: replace interface to type
joodongkim 531f8ea
refactoring for nextjs
joodongkim 35eb2cf
refactor: for nextjs
joodongkim 06d2176
Merge branch 'Next-김주동' into Next-김주동-sprint9
joodongkim c708ff7
Merge branch 'Next-김주동-sprint9' of https://github.com/joodongkim/10-S…
joodongkim fe773d5
feat: sprint#10 first commit
joodongkim fb2af31
review: sprint#10
joodongkim 39bc0b1
prepare for sprint#11
joodongkim 2c3c88d
Merge branch 'Next-김주동' of https://github.com/codeit-bootcamp-fronten…
joodongkim d048b92
prepare for sprint#11-01
joodongkim 2bedc4b
prepare for sprint#11-02
joodongkim ac33aef
prepare for sprint#11-03
joodongkim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { LoginFormValues, SignupFormValues } from "../types/authTypes"; | ||
|
||
export const requestSignup = async (data: SignupFormValues): Promise<any> => { | ||
const response = await fetch( | ||
"https://panda-market-api.vercel.app/auth/signUp", | ||
{ | ||
method: "POST", | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
body: JSON.stringify(data), | ||
} | ||
); | ||
|
||
if (!response.ok) { | ||
throw new Error("Network response was not ok"); | ||
} | ||
|
||
return response.json(); | ||
}; | ||
|
||
export const requestLogin = async (data: LoginFormValues): Promise<any> => { | ||
const response = await fetch( | ||
"https://panda-market-api.vercel.app/auth/signIn", | ||
{ | ||
method: "POST", | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
body: JSON.stringify(data), | ||
} | ||
); | ||
|
||
if (!response.ok) { | ||
throw new Error("Network response was not ok"); | ||
} | ||
|
||
return response.json(); | ||
}; |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3:
header content-type 에 대한 mdn 문서입니다~
전송되는 데이터 타입에 대해 명시해주는 값입니다.
https://developer.mozilla.org/ko/docs/Web/HTTP/Headers/Content-Type