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