Cloud API Overview > @adpt/cloud > http > checkUrlEndpoints
http.checkUrlEndpoints() function
Function to check if the routes prop for UrlRouter components is valid
Signature:
export declare function checkUrlEndpoints(routes: UrlRouterRoute[]): void;
Parameters
Parameter | Type | Description |
---|---|---|
routes | UrlRouterRoute[] | routes from UrlRouter props |
Returns:
void
Remarks
Throws and error if the routes are invalid, along with specific error details in the exception
This can be used by concrete implementation of UrlRouter to check their props for validity.