diff --git a/gateway/src/main.cpp b/gateway/src/main.cpp index c649987..bd9218a 100644 --- a/gateway/src/main.cpp +++ b/gateway/src/main.cpp @@ -522,8 +522,8 @@ void registerRoutes(HttpServer &server) { }); server.get("*", [](const auto& req, const auto& params) -> http::response { - return wapperHttp(req, params, - [](const auto& req, const auto& params) { return handleProxy(req, params, "get"); }) + return wrapperHttp(req, params, + [](const auto& req, const auto& params) { return handleProxy(req, params, "get"); }); }); server.post("*", [](const auto& req, const auto& params) { @@ -943,7 +943,7 @@ http::response handleProxy( catch (const boost::wrapexcept& e) { THROW_EX_CUSTOM(HttpException, 2302, "Bad token", 400, "*"); } - if (!jv_r.is_object()) THROW_EX_CUSTOM(HttpException, 2302, "Bad token", 400, "*"); + if (!jv_t.is_object()) THROW_EX_CUSTOM(HttpException, 2302, "Bad token", 400, "*"); json::object& obj = jv_t.as_object(); auto t = json::value_to(obj["created_at"]);