Removes response after uploading a photo, and preps things for get photo info endpoint
This commit is contained in:
@@ -70,7 +70,7 @@ class TeamController(private val teamService: TeamService, private val photoServ
|
||||
@PathVariable teamId: TeamId,
|
||||
@PathVariable itemId: ItemId,
|
||||
@PathVariable photoId: PhotoId): ResponseEntity<PhotoResponse> {
|
||||
TODO("Get photo information for the specified Team, Hunt, Item, and Photo")
|
||||
TODO("Get photo information for the specified Team, Hunt, Item, and Photo. Join on the Hunter table to get the Hunter name. Also verify that the requesting user is either an admin or is on the same Hunt and Team as the Hunter who submitted the Photo")
|
||||
}
|
||||
|
||||
@GetMapping("/{teamId}/item/{itemId}/photo/{photoId}/file")
|
||||
@@ -88,8 +88,8 @@ class TeamController(private val teamService: TeamService, private val photoServ
|
||||
@PathVariable teamId: TeamId,
|
||||
@PathVariable itemId: ItemId,
|
||||
authentication: Authentication,
|
||||
@RequestParam file: MultipartFile): ResponseEntity<PhotoResponse> {
|
||||
return ResponseEntity.ok(photoService.submitPhoto(huntId, itemId, authentication.name, file).toResponse())
|
||||
@RequestParam file: MultipartFile) {
|
||||
photoService.submitPhoto(huntId, itemId, authentication.name, file)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user