Changed hapi IRouteConfiguration handler property to be optional (#9439)

The hapi IRouteConfiguration handler property should be optional as the
handler can alternatively be provided via the config property using the
handler property of IRouteAdditionalConfigurationOptions.
This commit is contained in:
Chris Manning
2016-06-02 21:50:23 +09:00
committed by Masahiro Wakame
parent 191daf6112
commit 61d2636c2c
+1 -1
View File
@@ -875,7 +875,7 @@ declare module "hapi" {
/** - an optional domain string or an array of domain strings for limiting the route to only requests with a matching host header field.Matching is done against the hostname part of the header only (excluding the port).Defaults to all hosts.*/
vhost?: string;
/** - (required) the function called to generate the response after successful authentication and validation.The handler function is described in Route handler.If set to a string, the value is parsed the same way a prerequisite server method string shortcut is processed.Alternatively, handler can be assigned an object with a single key using the name of a registered handler type and value with the options passed to the registered handler.*/
handler: ISessionHandler | string | IRouteHandlerConfig;
handler?: ISessionHandler | string | IRouteHandlerConfig;
/** - additional route options.*/
config?: IRouteAdditionalConfigurationOptions;
}