Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ internals.routeBase = Validate.object({
defaultContentType: Validate.string().default('application/json'),
compression: Validate.object()
.pattern(/.+/, Validate.object())
.default()
.default(),
querystring: Validate.function(),
})
.default(),
plugins: Validate.object(),
Expand Down
6 changes: 6 additions & 0 deletions lib/types/route.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ export interface RouteOptionsPayload {
* [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionspayloaduploads)
*/
uploads?: string | undefined;

/**
* @default Querystring.parse().
* Query parser implementation fro application/x-www-form-urlencoded data
*/
querystring?: (query: string) => { [key: string]: unknown };
}

/**
Expand Down