We can create the same path in different HTTP request type. For example: GET /posts/:id PUT /posts/:id when we add before('/posts/:id') { ... } before filter will be work for both routes.
We can create the same path in different HTTP request type. For example:
GET /posts/:id
PUT /posts/:id
when we add before('/posts/:id') { ... } before filter will be work for both routes.