feat: finalize AI analyzer, sync endpoints, and stabilize builds
This commit is contained in:
@@ -114,6 +114,16 @@ public class UserController {
|
||||
"SOS dikirim! Guardian sudah diberitahu."));
|
||||
}
|
||||
|
||||
@GetMapping("/sos-events")
|
||||
public ResponseEntity<ApiResponse<Page<SosEventResponse>>> getSosEvents(
|
||||
@RequestParam(defaultValue = "0") int page,
|
||||
@RequestParam(defaultValue = "20") int size) {
|
||||
return ResponseEntity.ok(ApiResponse.ok(
|
||||
sosService.getSosEvents(SecurityHelper.getCurrentUserId(),
|
||||
PageRequest.of(page, size)),
|
||||
"Riwayat SOS"));
|
||||
}
|
||||
|
||||
@GetMapping("/activity-logs")
|
||||
public ResponseEntity<ApiResponse<Page<ActivityLogResponse>>> getActivityLogs(
|
||||
@RequestParam(defaultValue = "0") int page,
|
||||
|
||||
Reference in New Issue
Block a user