Skip to content

v2.0.0

Compare
Choose a tag to compare
@Exilz Exilz released this 26 Jan 08:27

Breaking change

  • Your endpoint's parsed path is now available without its query parameters in your middlewares' signature.

The third argument supplied to the middleware is now an object with
both the fullPath as it used to be and your path without its query
parameters.
This can be useful in some cases, when generating authentication
headers, for instance.

Features

  • You can now pass an undefined value to both queryParameters and pathParameters.

They will simply be ignored during the parsing of your paths. This is
is much easier than having to create an intermediate var with your
fetch options since you don’t have to care whether your variable is
defined or not.