Sha256: ada376273654b625622161694057752af756956e93165fe371360bb703221bcf
Contents?: true
Size: 487 Bytes
Versions: 9
Compression:
Stored size: 487 Bytes
Contents
#!/usr/bin/env falcon --verbose serve -c # frozen_string_literal: true # Save this as `config.ru`, make it executable and then run it (or run falcon serve by hand) # Middleware that responds to incoming requests: require 'sinatra/base' class MyApp < Sinatra::Base get "/" do response = Faraday.get 'http://sushi.com/nigiri/sake.json' end end # Build the middleware stack: use MyApp # Then, it will get to Sinatra. run lambda {|env| [404, {}, []]} # Bottom of the stack, give 404.
Version data entries
9 entries across 9 versions & 1 rubygems