20 lines
369 B
Ruby
20 lines
369 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'hanami/router'
|
|
|
|
require_relative 'full_odds/endpoint/health'
|
|
require_relative 'full_odds/endpoint/index'
|
|
|
|
module FO
|
|
def self.router
|
|
@router ||= Hanami::Router.new do
|
|
get '/health', to: FO::Endpoint::Health
|
|
get '/', to: FO::Endpoint::Index
|
|
end
|
|
end
|
|
|
|
def self.call(env)
|
|
self.router.call(env)
|
|
end
|
|
end
|