express 사용하여 get, post, delete 요청
get, post, delete 요청(라우터 추가) 데이터는 보통 json으로 표현함 const express = require('express'); const app = express(); app.get('/', (req, res) => { res.send('hello express'); }); app.get('/api', (req, res) => { res.send('hello api'); }); app.get('/api/posts', (req, res) => { res.json([ { id: 1, content: 'hello1' }, { id: 2, content: 'hello2' }, { id: 3, content: 'hello3' }, ]) }); app.post('/api/post', (req..