Toggle navigation
Toggle navigation
This project
Loading...
Sign in
khusat
/
khusat-front
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이준호
2020-12-08 14:01:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8627d7a2b25ee65ea8c0e5a8f8618ef21ae5af2c
8627d7a2
1 parent
66fd27a8
[UPDATE] 배포된 서버로 연결 변경
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
package.json
src/api/getQuestion.js
src/api/getResult.js
src/pages/ResultPage.js
package.json
View file @
8627d7a
...
...
@@ -36,7 +36,6 @@
"react-app/jest"
]
},
"proxy"
:
"http://localhost:8000"
,
"browserslist"
:
{
"production"
:
[
">0.2%"
,
...
...
src/api/getQuestion.js
View file @
8627d7a
import
axios
from
'axios'
;
const
getQuestion
=
async
()
=>
{
const
res
=
axios
.
get
(
"getquestions"
);
const
res
=
axios
.
get
(
"
http://3.34.126.151:8000/
getquestions"
);
return
res
;
}
...
...
src/api/getResult.js
View file @
8627d7a
import
axios
from
'axios'
;
const
getResult
=
async
(
answer
)
=>
{
const
res
=
await
axios
.
post
(
"submit"
,
answer
);
const
res
=
await
axios
.
post
(
"
http://3.34.126.151:8000/
submit"
,
answer
);
return
res
;
}
...
...
src/pages/ResultPage.js
View file @
8627d7a
...
...
@@ -23,6 +23,9 @@ const Description = styled.div`
font-size: 1.4rem;
`
;
// TODO: 다시하기 and 카카오톡 공유
// 다시하기 : getQuestion dispatch 해준 다음 push('/survey');
function
ResultPage
({
result
}){
return
(
<>
...
...
Please
register
or
login
to post a comment