- @GetMapping("seen")
- public Map<Integer, Map<String, Map<String, Long>>> seen()
- {
- return consumer.getSeen();
- }
-
- @GetMapping("seen/{user}")
- public ResponseEntity<Map<String, Long>> seen(@PathVariable String user)
- {
- for (Map<String, Map<String, Long>> users : consumer.getSeen().values())
- {
- Map<String, Long> words = users.get(user);
- if (words != null)
- return ResponseEntity.ok(words);
- }
-
- return ResponseEntity.notFound().build();
- }
-
-