Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2_open_source_sw_development_Han
/
Jaksimsamil
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
redbean096@khu.ac.kr
2020-12-09 08:28:20 +0000
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
abbbaaec6c530f5ee64dfb959fa288b1c754e1f0
abbbaaec
2 parents
0a3b0715
5225717e
fix merge conflict lineDev -> db
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
4 deletions
jaksimsamil-page/package-lock.json
jaksimsamil-page/package.json
jaksimsamil-server/index.js
jaksimsamil-server/src/api/auth/auth.ctrl.js
jaksimsamil-server/src/api/profile/profile.ctrl.js
jaksimsamil-page/package-lock.json
View file @
abbbaae
This diff could not be displayed because it is too large.
jaksimsamil-page/package.json
View file @
abbbaae
...
...
@@ -3,12 +3,20 @@
"version"
:
"0.1.0"
,
"private"
:
true
,
"dependencies"
:
{
"@material-ui/core"
:
"^4.11.2"
,
"@testing-library/jest-dom"
:
"^5.11.6"
,
"@testing-library/react"
:
"^11.2.2"
,
"@testing-library/user-event"
:
"^12.5.0"
,
"axios"
:
"^0.21.0"
,
"immer"
:
"^8.0.0"
,
"@material-ui/core"
:
"^4.10.2"
,
"@testing-library/jest-dom"
:
"^4.2.4"
,
"@testing-library/react"
:
"^9.3.2"
,
"@testing-library/user-event"
:
"^7.1.2"
,
"axios"
:
"^0.19.2"
,
"eslint"
:
"^7.14.0"
,
"immer"
:
"^7.0.5"
,
"include-media"
:
"^1.4.9"
,
"moment"
:
"^2.29.1"
,
"open-color"
:
"^1.7.0"
,
...
...
@@ -30,7 +38,10 @@
"eject"
:
"react-scripts eject"
},
"eslintConfig"
:
{
"extends"
:
"react-app"
"extends"
:
"react-app"
,
"rules"
:
{
"jsx-a11y/anchor-is-valid"
:
"off"
}
},
"browserslist"
:
{
"production"
:
[
...
...
@@ -44,5 +55,5 @@
"last 1 safari version"
]
},
"proxy"
:
"http://localhost:4000"
"proxy"
:
"http://localhost:4000
/
"
}
...
...
jaksimsamil-server/index.js
View file @
abbbaae
...
...
@@ -37,6 +37,7 @@ mongoose
useNewUrlParser
:
true
,
useFindAndModify
:
false
,
useUnifiedTopology
:
true
,
useCreateIndex
:
true
})
.
then
(()
=>
{
console
.
log
(
"Connected to MongoDB"
);
...
...
jaksimsamil-server/src/api/auth/auth.ctrl.js
View file @
abbbaae
...
...
@@ -14,7 +14,7 @@ exports.register = async (ctx) => {
password
:
Joi
.
string
().
required
(),
});
const
result
=
Joi
.
validate
(
ctx
.
request
.
body
,
schema
);
const
result
=
schema
.
validate
(
ctx
.
request
.
body
);
if
(
result
.
error
)
{
ctx
.
status
=
400
;
ctx
.
body
=
result
.
error
;
...
...
jaksimsamil-server/src/api/profile/profile.ctrl.js
View file @
abbbaae
...
...
@@ -51,7 +51,7 @@ exports.setProfile = async (ctx) => {
})
.
unknown
();
console
.
log
(
ctx
.
request
.
body
);
const
result
=
Joi
.
validate
(
ctx
.
request
.
body
,
schema
);
const
result
=
schema
.
validate
(
ctx
.
request
.
body
);
if
(
result
.
error
)
{
ctx
.
status
=
400
;
ctx
.
body
=
result
.
error
;
...
...
Please
register
or
login
to post a comment