class Trialday::Base

Public Class Methods

get(path, &block) click to toggle source

Defining a `GET` handler

# File lib/trialday/base.rb, line 21
def get(path, &block)
  Trialday::Router.route(path, 'GET', &block)
end
post(path, &block) click to toggle source

Defining a `POST` handler

# File lib/trialday/base.rb, line 25
def post(path, &block)
  Trialday::Router.route(path, 'POST', &block)
end