ivoire5204
Builds for 1 pipeline failed in 0 seconds

주석ㅃㅃ

...@@ -13,20 +13,6 @@ app.get('/board/:bid', async(req, res) => { ...@@ -13,20 +13,6 @@ app.get('/board/:bid', async(req, res) => {
13 res.render('threadslist', {board, threads}); 13 res.render('threadslist', {board, threads});
14 }); 14 });
15 15
16 -/*
17 -app.post('/board/:bid/thread', async(req, res) => {
18 - if(!req.body.title || !req.body.content) { //
19 - res.status(400).json({error: 'Invalid input'});
20 - }
21 - let board = await db.get('board').findOne({name: req.params.bid});
22 - if(!board) {
23 - res.status(404).json({error: 'Board not found'});
24 - }
25 - let thread = await db.get('thread').insert({board: board._id, title: req.body.title, content: req.body.content, lastUpdated: Date.now(), count: 1});
26 - res.json({thread});
27 -});
28 -*/
29 -
30 app.post('/board/:bid', async(req, res) => { 16 app.post('/board/:bid', async(req, res) => {
31 if(!req.body.title || !req.body.content) { 17 if(!req.body.title || !req.body.content) {
32 res.status(400).send('제목이나 내용을 써주세요.'); 18 res.status(400).send('제목이나 내용을 써주세요.');
......