class LegacyDetectorController {

    @GetMapping(path = "/getLastUpdatedDetectors", produces = "application/json")
    @ResponseStatus(HttpStatus.OK)
    public List<DetectorDocument> getLastUpdatedDetectors(@RequestParam long interval) {
        return detectorRepo.getLastUpdatedDetectors(interval);
    }

}