frontend1 document, Express.js expressjs Guide Serving static files in Express app.use(express.static('public')) app.use(express.static('files')) app.use('/static', express.static('public')) app.use('/static', express.static(path.join(__dirname, 'public')))스태틱 경로 설정할 수 있음 Routing METHOD app.get('/', function (req, res) { res.send('hello world') })위 형태로 get post p.. 2020. 1. 21. 이전 1 다음