Make lastdependencies endpoint less strict

This commit is contained in:
Nassim Jahnke 2022-06-20 10:03:21 +02:00
parent bff5aa77b4
commit 78393e32c7
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -199,7 +199,7 @@ public class VersionController extends HangarComponent {
}
@VisibilityRequired(type = Type.PROJECT, args = "{#author, #slug}")
@RateLimit(overdraft = 5, refillTokens = 2, refillSeconds = 10)
@RateLimit(overdraft = 5, refillTokens = 3, greedy = true)
@GetMapping(path = "/version/{author}/{slug}/lastdependencies")
public ResponseEntity<LastDependencies> getLastVersionDependencies(@PathVariable String author, @PathVariable String slug, @RequestParam(required = false) String channel, @RequestParam String platform) {
return ResponseEntity.ok(versionService.getLastVersionDependencies(author, slug, channel, platform));