mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-13 15:39:18 +08:00
Make lastdependencies endpoint less strict
This commit is contained in:
parent
bff5aa77b4
commit
78393e32c7
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user