Skip to content

A method to test a string against the routes table #2220

@briandela

Description

@briandela

Just wondering if there is a way in 7.5.x to check if a string would be a valid match for one of the routes.

In a location where I have access to the server object I have a string (e.g. /hello/there/hapi) and I want to see if it would match a route in that server object (e.g. if there was a /hello/there/{thing} the above string would match that (assuming that was the best match)).

Thanks.

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions