Sha256: 44e9978ca46b7678d56c65ca5a34ee9cdef3574950ba40ed4e439e39c6f421fd
Contents?: true
Size: 395 Bytes
Versions: 35
Compression:
Stored size: 395 Bytes
Contents
module J1App class SiteManager < Sinatra::Base register Sinatra::Index root = File.expand_path(J1App.destination, Dir.pwd) set :public_folder, root use_static_index "index.html" not_found do status 404 four_oh_four = File.expand_path(settings.public_folder + "/404.html", Dir.pwd) File.read(four_oh_four) if File.exist?(four_oh_four) end end end
Version data entries
35 entries across 35 versions & 2 rubygems