initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user