diff --git a/include/net/web_server/query_router.h b/include/net/web_server/query_router.h index eadc0f9..ee7e376 100644 --- a/include/net/web_server/query_router.h +++ b/include/net/web_server/query_router.h @@ -67,7 +67,7 @@ struct query_router { Fn&& fn) { if constexpr (Available) { if (!fn.is_available()) { - return; + return *this; } } @@ -96,7 +96,7 @@ struct query_router { query_router& post(std::string const& path_regex, Fn&& fn) { if constexpr (Available) { if (!fn.is_available()) { - return; + return *this; } } @@ -128,7 +128,7 @@ struct query_router { query_router& get(std::string const& path_regex, Fn&& fn) { if constexpr (Available) { if (!fn.is_available()) { - return; + return *this; } }