def get(self): logging.info(self.request) self.response.headers['Content-Type'] = 'application/json' games = GameService.allGames() self.response.out.write(GameService.toJSON(games)) logging.info(self.response)
def get(self): logging.info(self.request) self.response.headers['Content-Type'] = 'application/json' games = GameService.allGames() self.response.out.write(GameService.toJSON(games)) logging.info(self.response)
def get(self): games = GameService.allGames() template_values = {'games': games} path = os.path.join(os.path.dirname(__file__), 'web/listGames.html') self.response.out.write(template.render(path, template_values))
def get(self): games = GameService.allGames() template_values = {'games': games} path = os.path.join(os.path.dirname(__file__), 'web/listGames.html') self.response.out.write(template.render(path, template_values))