Skip to content

Commit

Permalink
Make all overloads of HTTPRouter.match() available for URLRouter. See #…
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 18, 2014
1 parent 6ee19dc commit 0e371be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/vibe/http/router.d
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ class URLRouter : HTTPRouter {
m_routes[method] ~= Route(path, cb);
return this;
}

alias match = HTTPRouter.match;

/// Handles a HTTP request by dispatching it to the registered route handlers.
void handleRequest(HTTPServerRequest req, HTTPServerResponse res)
Expand Down

1 comment on commit 0e371be

@extrawurst
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice thats much more conveniant .. and D'ish, thank you ;)

Please sign in to comment.