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(