Skip to content

Remove Route.forTesting method

Choose a tag to compare

@thetutlage thetutlage released this 12 Feb 10:08

The method was added to test middleware or validator by creating a test only route. However, removing the route is not possible coz of the internal data structure of the routes store and hence these routes will start conflicting.

There are better ways to best middleware or validator in isolation and docs will shed some light on it

Commits

  • refactor: remove Route.forTesting 31f73c7
  • refactor: request.toJSON now also includes subdomains, ip and hostname ee762fd
  • feat: accept array in response.vary method 91d7e10

v5.0.0...v5.0.1