Module: Scales::Server::Dispatch::Lookup

Defined in:
lib/scales-server/dispatch/lookup.rb

Class Method Summary collapse

Class Method Details

.resource(env) ⇒ Object



7
8
9
10
# File 'lib/scales-server/dispatch/lookup.rb', line 7

def resource(env)
  response = Storage::Async.get_content(path(env), Scales.config.partials)
  response.nil? ? render_not_found : render(response)
end