//app.js or server.js 설정.
npm install method-override 모듈설치.
//server

//front

form action = 부분에 ?_method=PUT 이런식으로해야 서버에서 put , delete 가 작동할것이다..
이거안되서 그냥 서버에서 post 로 사용하곤했는데..restful한 api를 사용하기위해.......ㅠ공부를열씸히하도록하자...
'Node.js' 카테고리의 다른 글
| 미들웨어 이해하기 (0) | 2020.08.28 |
|---|---|
| [err]Cannot convert object to primitive value (0) | 2020.07.15 |
| (node:54353) [SEQUELIZE0004] DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed. (0) | 2020.07.14 |
| view engine => ejs 사용법 (0) | 2020.07.10 |
| view engine => ejs 사용법 (0) | 2020.07.10 |