Beispiel #1
0
def new_game():
    game = Game(create=True)
    url = app.get_url('game-index', game=game.name)
    bottle.response.headers['location'] = url
    return bottle.HTTPResponse({'message': '', 'game': game.name}, 201)
Beispiel #2
0
def new_game():
    game = Game(create=True)
    bottle.redirect(app.get_url("game-index", game=game.name))