Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정성훈
/
MEALKHU
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
swa07016
2020-06-29 00:11:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1262cc1270436689af63b0b828466885bab99054
1262cc12
1 parent
cce3da99
504 error 해결
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
6 deletions
client/src/components/MealCard.js
client/src/components/PickedCard.js
client/src/components/UserCards.js
client/src/pages/MypickPage.js
client/src/pages/SigninPage.js
client/src/pages/SignupPage.js
client/src/components/MealCard.js
View file @
1262cc1
...
...
@@ -24,7 +24,8 @@ const MealCard = (props) => {
method
:
'GET'
,
headers
:
{
'Content-Type'
:
'application/json'
,
'authorization'
:
user
'authorization'
:
user
,
'Accept'
:
'application/json'
}
}).
then
(
response
=>
response
.
json
())
.
then
(
result
=>
{
...
...
client/src/components/PickedCard.js
View file @
1262cc1
...
...
@@ -34,7 +34,8 @@ const MealCard = (props) => {
method
:
'POST'
,
headers
:
{
'Content-Type'
:
'application/json'
,
'authorization'
:
user
'authorization'
:
user
,
'Accept'
:
'application/json'
},
body
:
JSON
.
stringify
({
"cardid"
:
props
.
id
...
...
client/src/components/UserCards.js
View file @
1262cc1
...
...
@@ -13,7 +13,8 @@ const UserCards = (props) => {
method
:
'GET'
,
headers
:
{
'Content-Type'
:
'application/json'
,
'authorization'
:
user
'authorization'
:
user
,
'Accept'
:
'application/json'
}
}).
then
(
response
=>
response
.
json
())
...
...
client/src/pages/MypickPage.js
View file @
1262cc1
...
...
@@ -13,7 +13,8 @@ const MypickPage = () => {
method
:
'GET'
,
headers
:
{
'Content-Type'
:
'application/json'
,
'authorization'
:
user
'authorization'
:
user
,
'Accept'
:
'application/json'
}
}).
then
(
response
=>
response
.
json
())
...
...
client/src/pages/SigninPage.js
View file @
1262cc1
...
...
@@ -12,7 +12,8 @@ const SigninPage = (props) => {
return
fetch
(
'/api/signin'
,
{
method
:
'POST'
,
headers
:
{
'Content-Type'
:
'application/json'
'Content-Type'
:
'application/json'
,
'Accept'
:
'application/json'
},
body
:
JSON
.
stringify
(
user
),
...
...
client/src/pages/SignupPage.js
View file @
1262cc1
...
...
@@ -29,7 +29,8 @@ const SigninPage = (props) => {
method
:
"POST"
,
body
:
JSON
.
stringify
(
signupInfo
),
headers
:
{
"Content-Type"
:
"application/json"
"Content-Type"
:
"application/json"
,
'Accept'
:
'application/json'
}
};
...
...
Please
register
or
login
to post a comment