정승호

오탈자 수정

......@@ -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());
......
......@@ -31,9 +31,9 @@ const userSchema = mongoose.Schema({
})
const User = mongoose.model('User', userSchema)
const Users = mongoose.model('Users', userSchema)
model.exports = {}
module.exports = {Users}
......