robin*

스레드에 서브스레드 갯수 추가

......@@ -21,7 +21,7 @@ app.post('/board/:bid/thread', async(req, res) => {
if(!board) {
res.status(404).json({error: 'Board not found'});
}
let thread = await db.get('thread').insert({board: board._id, title: req.body.title, content: req.body.content, lastUpdated: Date.now()});
let thread = await db.get('thread').insert({board: board._id, title: req.body.title, content: req.body.content, lastUpdated: Date.now(), count: 1});
res.json({thread});
});
app.get('/borad/:bid/thread/:tid', async(req, res) => {
......