diff options
author | ipknHama <ipknhama@gmail.com> | 2014-09-08 07:07:53 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-09-08 07:07:53 +0900 |
commit | ab1063c046b363a37ccaf91c7dfb1fecd279be36 (patch) | |
tree | 87b3a8cc331dc2a7130e0e6104fe1a4d1127d0ff /include/crow.h | |
parent | 2748e35430b9a4aaf64dfbd626d819f0fc5eedd2 (diff) | |
download | crow-ab1063c046b363a37ccaf91c7dfb1fecd279be36.tar.gz crow-ab1063c046b363a37ccaf91c7dfb1fecd279be36.zip |
complete middleware implementation
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); |