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 18:53:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50678935206f5ab3b42bdd2d336b8e263a92386d
50678935
1 parent
c0070fe7
오탈자 수정
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
index.js
models/Users.js
index.js
View file @
5067893
...
...
@@ -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 @
5067893
...
...
@@ -31,9 +31,9 @@ const userSchema = mongoose.Schema({
})
const
User
=
mongoose
.
model
(
'User
'
,
userSchema
)
const
User
s
=
mongoose
.
model
(
'Users
'
,
userSchema
)
mod
el
.
exports
=
{
}
mod
ule
.
exports
=
{
Users
}
...
...
Please
register
or
login
to post a comment