Implements getting items for a hunt

This commit is contained in:
2026-05-13 16:09:10 -05:00
parent 30c66527b9
commit 9324cf2eb0
3 changed files with 17 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ class ItemController(private val huntService: HuntService) {
@GetMapping
fun getItemsForHunt(@PathVariable huntId: HuntId): ResponseEntity<List<ItemResponse>> {
TODO("List the Items related to the specified Hunt")
return ResponseEntity.ok(huntService.getItemsForHunt(huntId).map { it.toResponse() })
}
@GetMapping("/{itemId}")