박기홍

router edited

......@@ -4,6 +4,7 @@ const port = 3000;
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const router = require('./router')(app);
app.use(bodyParser.urlencoded({extended:true}));
app.use(bodyParser.json());
......@@ -15,6 +16,7 @@ db.once('open', function(){
console.log("Connected to mongod server");
});
mongoose.connect('mongodb://localhost/khusat');
app.listen(port, () => {
......
......@@ -68,5 +68,15 @@ module.exports = function(app)
res.send(recommendedJob);
});
app.post('/addJobs', async(req, res, next) => {
// 보직 추가하는 api
});
app.post('/addQuestions', async(req, res, next) => {
// 질문 추가하는 api
});
}
\ No newline at end of file
......