|
|
@ -102,10 +102,10 @@ public class DiscordController { |
|
|
return new ResponseEntity<>(reportRepository.getAll(), HttpStatus.OK); |
|
|
return new ResponseEntity<>(reportRepository.getAll(), HttpStatus.OK); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@GetMapping("/report/:id") |
|
|
@GetMapping("/report/{id}") |
|
|
@CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) |
|
|
@CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) |
|
|
public ResponseEntity<Report> getReportById(HttpServletRequest request, |
|
|
public ResponseEntity<Report> getReportById(HttpServletRequest request, |
|
|
Long id) { |
|
|
@PathVariable Long id) { |
|
|
return new ResponseEntity<>(reportRepository.getReportById(id), HttpStatus.OK); |
|
|
return new ResponseEntity<>(reportRepository.getReportById(id), HttpStatus.OK); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|