250x250
Notice
Recent Posts
Recent Comments
- Today
- Total
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- nginx
- async
- double quote
- RDS
- moment
- Find
- https
- wil
- single quote
- flutter
- css
- EC2
- TailwindCSS
- sequelize
- jsonwebtoken
- clipBehavior
- Express
- mongoose
- MYSQL
- atlas
- findByIdAndDelete
- certbot
- mongodb
- Nodejs
- AWS
- TypeScript
- JavaScript
- Node.js
- til
- await
Link
Archives
반응형
목록router (1)
기억 휘발 방지소

Router를 사용하면 요청의 URL을 기반으로 공통되는 라우터들을 그룹화할 수 있다. / /join /login /users/edit /users/remove 📌 라우터 사용하기 라우터는 express.Router([options])로 사용하면 된다. 이렇게 하면 /users/edit이라는 요청을 보냈을 때 /users를 먼저 찾고 userRouter로 간 후 /edit을 찾게된다. userRouter에서는 더 이상 /users를 적지 않아도 된다! import express from "express"; import morgan from "morgan"; const PORT = 4000; const app = express(); const logger = morgan("dev"); app.use(log..
Web/Node.js
2021. 9. 15. 00:00
반응형