lib/hydroponics.rb in hydroponics-0.2.1 vs lib/hydroponics.rb in hydroponics-0.2.2

- old
+ new

@@ -1,6 +1,19 @@ -require 'rubygems' -require 'sinatra' +require 'erb' +require 'fileutils' +require File.join(FileUtils.pwd, "lib/db_remote.rb") -get '/' do - 'Hello world!' +class HydroApp < Sinatra::Base + include DbRemote + + set :root, File.join(FileUtils.pwd, "lib") + set :public, File.join(FileUtils.pwd, "static") + set :version, "0.2.1" + + get '/' do + erb :index + end + + get '/round1' do + erb :index + end end