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.9.1-java spec/support/hanami/hanami_app.rb
appsignal-3.9.1 spec/support/hanami/hanami_app.rb
appsignal-3.9.0-java spec/support/hanami/hanami_app.rb
appsignal-3.9.0 spec/support/hanami/hanami_app.rb
appsignal-3.8.1-java spec/support/hanami/hanami_app.rb
appsignal-3.8.1 spec/support/hanami/hanami_app.rb
appsignal-3.8.0-java spec/support/hanami/hanami_app.rb
appsignal-3.8.0 spec/support/hanami/hanami_app.rb
appsignal-3.7.6-java spec/support/hanami/hanami_app.rb
appsignal-3.7.6 spec/support/hanami/hanami_app.rb
appsignal-3.7.2-java spec/support/hanami/hanami_app.rb
appsignal-3.7.2 spec/support/hanami/hanami_app.rb
appsignal-3.7.1-java spec/support/hanami/hanami_app.rb
appsignal-3.7.1 spec/support/hanami/hanami_app.rb
appsignal-3.7.0-java spec/support/hanami/hanami_app.rb
appsignal-3.7.0 spec/support/hanami/hanami_app.rb
appsignal-3.6.5-java spec/support/hanami/hanami_app.rb
appsignal-3.6.5 spec/support/hanami/hanami_app.rb
appsignal-3.6.4-java spec/support/hanami/hanami_app.rb
appsignal-3.6.4 spec/support/hanami/hanami_app.rb