diff options
Diffstat (limited to 'include/crow.h')
-rw-r--r-- | include/crow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crow.h b/include/crow.h index a4b82df..fdc5206 100644 --- a/include/crow.h +++ b/include/crow.h @@ -82,7 +82,7 @@ namespace crow // middleware using context_t = detail::context<Middlewares...>; template <typename T> - typename T::context& get_middleware_context(const request& req) + typename T::context& get_context(const request& req) { static_assert(black_magic::contains<T, Middlewares...>::value, "App doesn't have the specified middleware type."); auto& ctx = *reinterpret_cast<context_t*>(req.middleware_context); |