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