Skip to content

Commit

Permalink
fixed controller method to actually return the stats
Browse files Browse the repository at this point in the history
  • Loading branch information
antleb committed Jan 26, 2024
1 parent a22c080 commit 1eae4f1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping(value = "/cache")
@CrossOrigin(methods = {RequestMethod.GET, RequestMethod.POST} , origins = "*")
Expand All @@ -24,7 +26,7 @@ public void dropCache() throws Exception {
}

@GetMapping("stats")
public void getStats() throws Exception {
cacheService.getStats();
public Map<String, Object> getStats() throws Exception {
return cacheService.getStats();
}
}

0 comments on commit 1eae4f1

Please sign in to comment.