Skip to content
Browse files

eol and comments

  • Loading branch information...
1 parent 9a65f9c commit e77d4f268027e6921a6bc36ec3dea20b118d6b39 @mutaphysis committed May 26, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 server.rb
View
8 server.rb
@@ -4,7 +4,7 @@
require 'dm-migrations'
require 'json'
-# only in dev mode
+# only in dev mode, reloads server on changes
require "sinatra/reloader"
require_relative 'Game'
@@ -45,8 +45,7 @@ class StoredGame
# create a new game
-get '/new_game' do
-
+get '/new_game' do
game = StoredGame.new()
game.title = "Katzenjammer"
#game.board = Game.new()
@@ -69,8 +68,7 @@ class StoredGame
results.to_json
end
-get '/games/:id' do
-
+get '/games/:id' do
id = params[:id].to_i
game = StoredGame.get(id)

0 comments on commit e77d4f2

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