Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정승호
/
Hexa_for_you_renewal
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
정승호
2020-05-22 19:39:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b3ad1822ae293d34d1ecb308d26a8e3319497d72
b3ad1822
1 parent
50678935
오탈자 수정
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
index.js
models/Users.js
package-lock.json
package.json
index.js
View file @
b3ad182
...
...
@@ -4,7 +4,7 @@ const app = express()
const
bodyParser
=
require
(
'body-parser'
);
const
port
=
5000
const
{
User
}
=
require
(
'./models/Users'
);
const
{
User
}
=
require
(
'./models/Users'
);
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
true
}));
app
.
use
(
bodyParser
.
json
());
...
...
models/Users.js
View file @
b3ad182
...
...
@@ -11,7 +11,7 @@ const userSchema = mongoose.Schema({
},
password
:{
type
:
String
,
m
in
length
:
50
m
ax
length
:
50
},
lastname
:{
type
:
String
,
...
...
@@ -26,14 +26,14 @@ const userSchema = mongoose.Schema({
type
:
String
},
tokenExp
:{
type
:
Number
,
type
:
Number
}
})
const
User
s
=
mongoose
.
model
(
'Users'
,
userSchema
)
const
User
=
mongoose
.
model
(
'Users'
,
userSchema
)
module
.
exports
=
{
User
s
}
module
.
exports
=
{
User
}
...
...
package-lock.json
View file @
b3ad182
This diff is collapsed. Click to expand it.
package.json
View file @
b3ad182
...
...
@@ -16,6 +16,7 @@
"dependencies"
:
{
"body-parser"
:
"^1.19.0"
,
"express"
:
"^4.17.1"
,
"mongoose"
:
"^5.9.15"
"mongoose"
:
"^5.9.15"
,
"nodemon"
:
"^2.0.4"
}
}
...
...
Please
register
or
login
to post a comment