diff --git a/source/vibe/http/router.d b/source/vibe/http/router.d index e2b340d42a..81e0d36b11 100644 --- a/source/vibe/http/router.d +++ b/source/vibe/http/router.d @@ -142,6 +142,12 @@ class URLRouter : HTTPRouter { m_routes[method] ~= Route(path, cb); return this; } + + /// ditto + URLRouter match(HTTPMethod method, string path, HTTPServerRequestFunction cb) + { + return match(method,path,toDelegate(cb)); + } /// Handles a HTTP request by dispatching it to the registered route handlers. void handleRequest(HTTPServerRequest req, HTTPServerResponse res)