Class: Trialday::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/trialday/base.rb

Direct Known Subclasses

Application

Class Method Summary collapse

Class Method Details

.get(path, &block) ⇒ Object

Defining a ‘GET` handler



21
22
23
# File 'lib/trialday/base.rb', line 21

def get(path, &block)
  Trialday::Router.route(path, 'GET', &block)
end

.post(path, &block) ⇒ Object

Defining a ‘POST` handler



25
26
27
# File 'lib/trialday/base.rb', line 25

def post(path, &block)
  Trialday::Router.route(path, 'POST', &block)
end