Class: TentD::API::HelloWorld

Inherits:
Middleware show all
Defined in:
lib/tentd/api.rb

Instance Method Summary collapse

Methods inherited from Middleware

#call, #initialize

Methods included from Authorizable

#authorize_env!, #authorize_env?

Constructor Details

This class inherits a constructor from TentD::API::Middleware

Instance Method Details

#action(env) ⇒ Object



33
34
35
# File 'lib/tentd/api.rb', line 33

def action(env)
  [200, { 'Link' => %(<%s>; rel="%s") % [File.join(env['SCRIPT_NAME'], 'profile'), PROFILE_REL] }, ['Tent!']]
end