diff options
Diffstat (limited to 'include/crow.h')
-rw-r--r-- | include/crow.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crow.h b/include/crow.h index 3fd55de..953d990 100644 --- a/include/crow.h +++ b/include/crow.h @@ -35,6 +35,11 @@ namespace crow router_.handle(req, res); } + DynamicRule& route_dynamic(std::string&& rule) + { + return router_.new_rule_dynamic(std::move(rule)); + } + template <uint64_t Tag> auto route(std::string&& rule) -> typename std::result_of<decltype(&Router::new_rule_tagged<Tag>)(Router, std::string&&)>::type |