Class GameStatsController
java.lang.Object
edu.ucsb.cs156.happiercows.controllers.GameStatsController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallGameStatsForGame(Long gameId) org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>
-
Constructor Details
-
GameStatsController
public GameStatsController()
-
-
Method Details
-
allGameStats
-
allGameStatsForGame
-
getCSV
@PreAuthorize("hasRole('ROLE_ADMIN')") @GetMapping("/download") public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getCSV(@RequestParam Long gameId) throws IOException - Throws:
IOException
-
getAllCSV
@PreAuthorize("hasRole('ROLE_ADMIN')") @GetMapping("/downloadAll") public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getAllCSV() throws IOException- Throws:
IOException
-