Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bounties/bounties.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class BountiesController {

@ApiOperation({ summary: 'Get a bounty by id' })
@ApiStandardErrorResponses()
@Throttle({ long: { limit: 1000, ttl: 3600000 } })
@Get(':id')
findOne(@Param('id', new ParseUUIDPipe()) id: string) {
return this.bountiesService.findOne(id);
Expand Down
4 changes: 4 additions & 0 deletions src/maintenance-pool/maintenance-pool.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,17 @@ export class MaintenancePoolController {
}

@ApiOperation({ summary: 'List maintenance pools' })
// Public read returning the whole table — tighten past the global default
// so it can't be scraped at the lenient rate (#592).
@Throttle({ long: { limit: 300, ttl: 3600000 } })
@Get()
list() {
return this.poolService.list();
}

@ApiOperation({ summary: 'Get a maintenance pool by id' })
@ApiStandardErrorResponses()
@Throttle({ long: { limit: 1000, ttl: 3600000 } })
@Get(':id')
findOne(@Param('id', new ParseUUIDPipe()) id: string) {
return this.poolService.findOne(id);
Expand Down
1 change: 1 addition & 0 deletions src/milestones/milestones.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class MilestonesController {
}

@ApiOperation({ summary: 'Get a milestone by id' })
@Throttle({ long: { limit: 1000, ttl: 3600000 } })
@Get(':id')
findOne(@Param('id', new ParseUUIDPipe()) id: string) {
return this.milestonesService.findOne(id);
Expand Down