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.5.0-java spec/support/hanami/hanami_app.rb
appsignal-3.5.0 spec/support/hanami/hanami_app.rb
appsignal-3.4.16-java spec/support/hanami/hanami_app.rb
appsignal-3.4.16 spec/support/hanami/hanami_app.rb
appsignal-3.4.15-java spec/support/hanami/hanami_app.rb
appsignal-3.4.15 spec/support/hanami/hanami_app.rb
appsignal-3.4.14-java spec/support/hanami/hanami_app.rb
appsignal-3.4.14 spec/support/hanami/hanami_app.rb
appsignal-3.4.13-java spec/support/hanami/hanami_app.rb
appsignal-3.4.13 spec/support/hanami/hanami_app.rb
appsignal-3.4.12-java spec/support/hanami/hanami_app.rb
appsignal-3.4.12 spec/support/hanami/hanami_app.rb
appsignal-3.4.11-java spec/support/hanami/hanami_app.rb
appsignal-3.4.11 spec/support/hanami/hanami_app.rb
appsignal-3.3.11-java spec/support/hanami/hanami_app.rb
appsignal-3.3.11 spec/support/hanami/hanami_app.rb
appsignal-3.4.10-java spec/support/hanami/hanami_app.rb
appsignal-3.4.10 spec/support/hanami/hanami_app.rb
appsignal-3.4.9-java spec/support/hanami/hanami_app.rb
appsignal-3.4.9 spec/support/hanami/hanami_app.rb