From 5df1a93dbbcaf9b18eed7a868c889439d06a1647 Mon Sep 17 00:00:00 2001 From: Oleksandr Zhevedenko <720803+Net-burst@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:46:34 -0500 Subject: [PATCH] Fix path param handling --- src/main/java/org/prebid/cache/routers/ApiRouter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/prebid/cache/routers/ApiRouter.java b/src/main/java/org/prebid/cache/routers/ApiRouter.java index b159551..0119417 100644 --- a/src/main/java/org/prebid/cache/routers/ApiRouter.java +++ b/src/main/java/org/prebid/cache/routers/ApiRouter.java @@ -35,17 +35,17 @@ RouterFunction doRoute(final GetCacheHandler getCacheHandler, return route( POST(apiConfig.getCachePath()) - .or(POST(apiConfig.getCachePath() + "/" + USER_CACHE_PATH_PARAM)) + .or(POST(apiConfig.getCachePath() + "/" + "{" + USER_CACHE_PATH_PARAM + "}")) .and(accept(MediaType.APPLICATION_JSON, MediaType.APPLICATION_JSON_UTF8, MediaType.TEXT_PLAIN)), postCacheHandler::save) .andRoute( GET(apiConfig.getCachePath()) - .or(GET(apiConfig.getCachePath() + "/" + USER_CACHE_PATH_PARAM)) + .or(GET(apiConfig.getCachePath() + "/" + "{" + USER_CACHE_PATH_PARAM + "}")) .and(accept(MediaType.APPLICATION_JSON, MediaType.APPLICATION_JSON_UTF8)), getCacheHandler::fetch) .andRoute( GET(apiConfig.getCachePath()) - .or(GET(apiConfig.getCachePath() + "/" + USER_CACHE_PATH_PARAM)) + .or(GET(apiConfig.getCachePath() + "/" + "{" + USER_CACHE_PATH_PARAM + "}")) .and(accept(MediaType.APPLICATION_XML)), getCacheHandler::fetch) .andRoute(