class RestGameController {

    @GetMapping("/{name}/info")
    public PGameTypeInfo type(@PathVariable("name") String name) {
        if (!exists(name)) {
            return null;
        }

        GameType game = gameService.getGame(name);

        PSprites sprites = new PSprites(spritesAlphabet(), spritesUrl(name),
                spritesNames(name), spritesValues(name));
        
        return new PGameTypeInfo(game, help(name), client(name), ws(), sprites);
    }

}