robin*

스레드 작성 후 리다이렉트 수정

......@@ -37,7 +37,7 @@ app.post('/board/:bid', async(req, res) => {
res.status(404).send('그런 판은 우리에게 있을 수 없어.');
}
let thread = await db.get('thread').insert({board: board._id, title: req.body.title, content: req.body.content, lastUpdated: Date.now(), count: 1});
res.redirect('/thread/'+thread.insertedIds);
res.redirect('/thread/' + thread._id);
});
app.get('/borad/:bid/thread/:tid', async(req, res) => {
......