1
0

Added query support

This commit is contained in:
2021-05-30 19:28:03 +02:00
parent e3105eafa1
commit 324d28806b
4 changed files with 14 additions and 5 deletions

1
index.d.ts vendored
View File

@@ -35,6 +35,7 @@ declare class Router {
* @typedef RouterRequest
* @property {string} method HTTP request method
* @property {Object<string, string>} params Object containing all parameters defined in the url string
* @property {Object<string, string>} query Object containing all query parameters
* @property {Object<string, string>} headers Object containing request headers
* @property {Object<string, string>|string} body Only available if method is `POST`, `PUT` or `PATCH`. Contains either the received body string or a parsed object if valid JSON was sent.
*/