aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2015-02-19 00:57:01 +0900
committeripknHama <ipknhama@gmail.com>2015-02-19 00:57:01 +0900
commitd564d486b550d8c2717e51e09c20314ca322fd67 (patch)
tree4caeb801fc73957f7ad81260b5ffe0c61e29d7b8 /include/crow.h
parent07042b55fdeaab1170cd5ad244939b5ed1f486a9 (diff)
downloadcrow-d564d486b550d8c2717e51e09c20314ca322fd67.tar.gz
crow-d564d486b550d8c2717e51e09c20314ca322fd67.zip
added route_dynamic
Diffstat (limited to 'include/crow.h')
-rw-r--r--include/crow.h5
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