| @@ -0,0 +1,8 @@ | |||
| const validator = require('validator') | |||
| const mongoose = require('mongoose') | |||
| const User = mongoose.model('User', { | |||
| }) | |||
| module.exports = User | |||
| @@ -4,7 +4,7 @@ const path = require('path') | |||
| const port = process.env.PORT || 3000 | |||
| require('./database/mongoose') | |||
| const viewsPath = path.join(__dirname, '../templates/views') | |||
| //const viewsPath = path.join(__dirname, '../templates/views') | |||
| app.use(express.json()) | |||