class DetectorMappingController {

    @RequestMapping(value = "/lastUpdated", method = RequestMethod.GET)
    public List<DetectorMapping> findDetectorMapping(@RequestParam int timeInSecs) {
        AssertUtil.notNull(timeInSecs, "timeInSecs can't be null");
        return detectorMappingRepo.findLastUpdated(timeInSecs);
    }

}