Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

eol and comments

  • Loading branch information...
commit e77d4f268027e6921a6bc36ec3dea20b118d6b39 1 parent 9a65f9c
Henrik Hinrichs authored

Showing 1 changed file with 3 additions and 5 deletions. Show diff stats Hide diff stats

  1. +3 5 server.rb
8 server.rb
@@ -4,7 +4,7 @@
4 4 require 'dm-migrations'
5 5 require 'json'
6 6
7   -# only in dev mode
  7 +# only in dev mode, reloads server on changes
8 8 require "sinatra/reloader"
9 9
10 10 require_relative 'Game'
@@ -45,8 +45,7 @@ class StoredGame
45 45
46 46
47 47 # create a new game
48   -get '/new_game' do
49   -
  48 +get '/new_game' do
50 49 game = StoredGame.new()
51 50 game.title = "Katzenjammer"
52 51 #game.board = Game.new()
@@ -69,8 +68,7 @@ class StoredGame
69 68 results.to_json
70 69 end
71 70
72   -get '/games/:id' do
73   -
  71 +get '/games/:id' do
74 72 id = params[:id].to_i
75 73 game = StoredGame.get(id)
76 74

0 comments on commit e77d4f2

Please sign in to comment.
Something went wrong with that request. Please try again.