Sha256: fae312ef1c1042ffe68acf99874aea50ac0b97c5b1d442fce6cac008a3126317

Contents?: true

Size: 568 Bytes

Versions: 100

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

require "hanami"
require "hanami/action"

module HanamiApp
  class App < Hanami::App
  end

  class Routes < Hanami::Routes
    get "/books", :to => "books.index"
  end

  module Actions
    module Books
      class Index < Hanami::Action
        def handle(_request, response)
          response.body = "YOU REQUESTED BOOKS!"
        end
      end

      class Error < Hanami::Action
        def handle(_request, _response)
          raise ExampleError
        end
      end
    end
  end

  class ExampleError < StandardError; end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
appsignal-3.6.3-java spec/support/hanami/hanami_app.rb
appsignal-3.6.3 spec/support/hanami/hanami_app.rb
appsignal-3.6.2-java spec/support/hanami/hanami_app.rb
appsignal-3.6.2 spec/support/hanami/hanami_app.rb
appsignal-3.6.1-java spec/support/hanami/hanami_app.rb
appsignal-3.6.1 spec/support/hanami/hanami_app.rb
appsignal-3.6.0-java spec/support/hanami/hanami_app.rb
appsignal-3.6.0 spec/support/hanami/hanami_app.rb
appsignal-3.5.6-java spec/support/hanami/hanami_app.rb
appsignal-3.5.6 spec/support/hanami/hanami_app.rb
appsignal-3.5.5-java spec/support/hanami/hanami_app.rb
appsignal-3.5.5 spec/support/hanami/hanami_app.rb
appsignal-3.5.4-java spec/support/hanami/hanami_app.rb
appsignal-3.5.4 spec/support/hanami/hanami_app.rb
appsignal-3.5.3-java spec/support/hanami/hanami_app.rb
appsignal-3.5.3 spec/support/hanami/hanami_app.rb
appsignal-3.5.2-java spec/support/hanami/hanami_app.rb
appsignal-3.5.2 spec/support/hanami/hanami_app.rb
appsignal-3.5.1-java spec/support/hanami/hanami_app.rb
appsignal-3.5.1 spec/support/hanami/hanami_app.rb