lib/app.rb in postrest-0.0.3 vs lib/app.rb in postrest-0.0.5
- old
+ new
@@ -4,10 +4,10 @@
require 'json'
# Home
class PostRest < Sinatra::Base
set :static, true
- set :public_folder, File.expand_path('..', __FILE__)
+ set :public_folder, "#{File.expand_path('..', __FILE__)}/../public"
get '/' do
send_file settings.public_folder + '/index.htm'
end