정승호

오탈자 수정

......@@ -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());
......
......@@ -11,7 +11,7 @@ const userSchema = mongoose.Schema({
},
password :{
type : String,
minlength : 50
maxlength : 50
},
lastname:{
type : String,
......@@ -26,14 +26,14 @@ const userSchema = mongoose.Schema({
type : String
},
tokenExp :{
type: Number,
type: Number
}
})
const Users = mongoose.model('Users', userSchema)
const User = mongoose.model('Users', userSchema)
module.exports = {Users}
module.exports = {User}
......
This diff is collapsed. Click to expand it.
......@@ -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"
}
}
......