class Fasta::Router
Attributes
router[R]
Public Class Methods
new() { |mapper| ... }
click to toggle source
# File lib/fasta/services/router.rb, line 6 def initialize @router = Hanami::Router.new do action = ->(klass) { ->(env) { klass.call(env) } } root to: ->(_env) { [200, {}, ['Welcome to API']] } mapper = Fasta::RoutesMapper.new(action, self) yield(mapper) end end
Public Instance Methods
runnable()
click to toggle source
# File lib/fasta/services/router.rb, line 17 def runnable router end