Class: Holoserve::Interface::Control::Index::Fetch
- Inherits:
-
Goliath::API
- Object
- Goliath::API
- Holoserve::Interface::Control::Index::Fetch
- Includes:
- Goliath::Rack::Templates, Helper
- Defined in:
- lib/holoserve/interface/control/index.rb
Instance Method Summary collapse
Methods included from Helper
#bad_request, #bucket, #history, #not_found, #ok, #pairs, #respond_json, #respond_json_acknowledgement, #state
Instance Method Details
#response(environment) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/holoserve/interface/control/index.rb', line 13 def response(environment) case environment["REQUEST_URI"] when "/_control" render_slim :index when "/_control/stylesheets/screen.css" render_scss :screen when "/_control/javascripts/all.js" render_coffee :all else not_found end end |