Module: J1AppTest

Defined in:
lib/j1_app.rb

Overview

App in development mode

Class Method Summary collapse

Class Method Details

.siteObject



93
94
95
96
97
98
99
100
# File 'lib/j1_app.rb', line 93

def self.site
  Rack::Builder.new do
    use Rack::LiveReload                                                      # Middleware. Support Livereload
    use Rack::ShowExceptions                                                  # Middleware. Generate web-based error pages (for Rack)
    use J1App::AuthManager                                                    # Middleware. Support authentication methods using OmniAuth
    run J1App::SiteManager                                                    # Run J1App Manager to manage the (static) site as an (Rack-based) Web Application:
  end
end