Skip to content

Commit

Permalink
fix: rate endpoint route (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: Maksim_Hadalau <[email protected]>
  • Loading branch information
Maxim-Gadalov and Maksim_Hadalau authored Nov 21, 2023
1 parent 92f6ad5 commit 157164a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ private static Controller selectPost(Proxy proxy, ProxyContext context, String p
return () -> controller.upload(relativeFilePath);
}

match = match(PATTERN_RATE_RESPONSE, path);
if (match != null) {
String deploymentId = match.group(1);
RateResponseController controller = new RateResponseController(proxy, context);
return () -> controller.handle(deploymentId);
}

return null;
}

Expand All @@ -160,13 +167,6 @@ private static Controller selectDelete(Proxy proxy, ProxyContext context, String
return () -> controller.delete(relativeFilePath);
}

match = match(PATTERN_RATE_RESPONSE, path);
if (match != null) {
String deploymentId = match.group(1);
RateResponseController controller = new RateResponseController(proxy, context);
return () -> controller.handle(deploymentId);
}

return null;
}

Expand Down

0 comments on commit 157164a

Please sign in to comment.