Class: DefaultApiEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/serverless_hub/handler.rb

Class Method Summary collapse

Class Method Details

.call(env) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/serverless_hub/handler.rb', line 26

def self.call(env)
  status  = 200
  headers = { "Content-Type" => "text/html" }
  body    = ['Hello World.']

  [status, headers, body]
end