lib/faastruby/server/app.rb in faastruby-0.5.7 vs lib/faastruby/server/app.rb in faastruby-0.5.8
- old
+ new
@@ -5,20 +5,19 @@
require 'sinatra/multi_route'
require 'securerandom'
require 'rouge'
require 'colorize'
module FaaStRuby
-
class Server < Sinatra::Base
include FaaStRuby::Logger::Requests
set :show_exceptions, true
set :logging, true
set :root, SERVER_ROOT
set :public_folder, FaaStRuby::ProjectConfig.public_dir
set :static, true
register Sinatra::MultiRoute
before do
- cache_control :public, :must_revalidate, :max_age => 1
+ cache_control :must_revalidate, :proxy_revalidate, :max_age => 0
end
route :head, :get, :post, :put, :patch, :delete, '/*' do
request_uuid = SecureRandom.uuid
splat = params['splat'][0]
function_name = resolve_function_name(splat)
\ No newline at end of file