(req, res) => {}
IT MEANS
req and res are PARAMETERS passed into this anonymous function.
Writing middleware for use in Express apps
middleware functions are functions that have access to the request object, the response object and the next function in the application's request- response cycle. the next function is a function in the ....
https://expressjs.com/en/guide/writing-middleware.html
IT MEANS
req and res are PARAMETERS passed into this anonymous function.
Writing middleware for use in Express apps
middleware functions are functions that have access to the request object, the response object and the next function in the application's request- response cycle. the next function is a function in the ....
https://expressjs.com/en/guide/writing-middleware.html
댓글
댓글 쓰기