Разработка ручки для GetAllMedications

This commit is contained in:
2026-01-08 11:28:43 +03:00
parent d929cbae02
commit f698196778
@@ -44,7 +44,7 @@ public:
BOOST_LOG_TRIVIAL(info) << "GET /api/v1/User/Medications - Request";
if (req[http::field::authorization].empty())
if (req[http::field::authorization].size() <= auth_prefix.size())
{
BOOST_LOG_TRIVIAL(info) << invalid_token_message;
throw session_exception(http::status::unauthorized, "Unauthorized");