Sha256: 968bbb73d50ced1bacd01cf20389dde0a671d7a2505849eb88d3e7cbdfaad795

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

require "sinatra"
require "underway"

configure do
  Underway::Settings.configure do |config|
    config.app_root = __FILE__
    config.config_filename = "config.json"
  end
end

include Sinatra::Underway
include Sinatra::Underway::AppInfo

get "/" do
  erb <<~EOS
    <a href="/info">Underway App Information</a>
  EOS
end

post "/user_authz" do
  debug_route(request)
end

get "/setup" do
  debug_route(request)
end

post "/hook" do
  debug_route(request)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
underway-1.0.0 example/app.rb