Sha256: 4bc942740f88741cd180b62366fb5ad9914566769f3bc56b877b90bf4dc760d2
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
#!/usr/bin/env falcon --verbose serve -c # 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 "hello world" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
falcon-0.6.0 | examples/sinatra/config.ru |