class RestGameController {

    @GetMapping("/{name}/sprites/names")
    public List<String> spritesNames(@PathVariable("name") String name) {
        if (!exists(name)) {
            return null;
        }

        return gameService.getSpritesNames().get(name);
    }

}