Method
list
(
@CurrentAuth() auth: AuthContext,
@Query(new ZodValidationPipe(ListApiKeysQuerySchema)) query: ListApiKeysQueryDto,
)
Source from the content-addressed store, hash-verified
| 39 | @Get() |
| 40 | @ApiOkResponse({ type: ApiKeyResponseDto, isArray: true }) |
| 41 | async list( |
| 42 | @CurrentAuth() auth: AuthContext, |
| 43 | @Query(new ZodValidationPipe(ListApiKeysQuerySchema)) query: ListApiKeysQueryDto, |
| 44 | ) { |
| 45 | const keys = await this.apiKeysService.list(auth, query); |
| 46 | return keys.map((key) => ApiKeyResponseDto.create(key)); |
| 47 | } |
| 48 | |
| 49 | @Post() |
| 50 | @Roles('ADMIN') |
Callers
nothing calls this directly
Tested by
no test coverage detected