Skip to content

Commit

Permalink
[webservice] Cutting out things I didn't like and things that make no…
Browse files Browse the repository at this point in the history
… sense
  • Loading branch information
sshirokov authored and sbryant committed Nov 26, 2010
1 parent e017c47 commit 22919db
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions gogogo/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ def dict2json(o):
def register_player(game):
pass

@app.post('/game/:name#[0-9a-f]+#/move/:player#[0-9a-f]+#/', name='game-move')
def move(game, player):
pass

@app.get('/game/:name#[0-9a-f]+#/branches/', name='game-branches')
def branches(name):
try:
Expand All @@ -41,25 +37,10 @@ def branches(name):
bottle.response.status = 404
return {'message': 'Game does not exist'}

@app.get('/game/:name#[0-9a-f]+#/branch/', name='game-branch-current')
def current_branch(name):
try:
game = Game(name)
return {'message': '',
'data': game.branch()}
except GameError:
bottle.response.status = 404
return {'message': 'Game does not exist'}


@app.post('/game/:name#[0-9a-f]+#/branches/create/', name='game-branches-create')
def create_branch(game):
pass

@app.post('/game/:name#[0-9a-f]+#/branches/switch/', name='game-branches-switch')
def switch_branch(game):
pass

@app.get('/game/:name#[0-9a-f]+#/branch/:branch/', name='game-branch')
def game(name, branch):
pass
Expand Down

0 comments on commit 22919db

Please sign in to comment.