정승호

오탈자 수정

...@@ -4,7 +4,7 @@ const app = express() ...@@ -4,7 +4,7 @@ const app = express()
4 const bodyParser = require('body-parser'); 4 const bodyParser = require('body-parser');
5 const port = 5000 5 const port = 5000
6 6
7 -const { User } = require('/models/Users'); 7 +const { User } = require('./models/Users');
8 8
9 app.use(bodyParser.urlencoded({extended : true})); 9 app.use(bodyParser.urlencoded({extended : true}));
10 app.use(bodyParser.json()); 10 app.use(bodyParser.json());
......
...@@ -31,9 +31,9 @@ const userSchema = mongoose.Schema({ ...@@ -31,9 +31,9 @@ const userSchema = mongoose.Schema({
31 31
32 }) 32 })
33 33
34 -const User = mongoose.model('User', userSchema) 34 +const Users = mongoose.model('Users', userSchema)
35 35
36 36
37 37
38 -model.exports = {} 38 +module.exports = {Users}
39 39
......