Mini Shell
U:RDoc::AnyMethod[iI"map:EFI"Rack::Builder#map;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I",Creates a route within the application.;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I"Rack::Builder.app do
;FI" map '/' do
;FI" run Heartbeat
;FI" end
;FI" end
;Fo;
; [I"_The +use+ method can also be used here to specify middleware to run under a specific path:;F@o;; [I"Rack::Builder.app do
;FI" map '/' do
;FI" use Middleware
;FI" run Heartbeat
;FI" end
;FI" end
;Fo;
; [I"`This example includes a piece of middleware which will run before requests hit +Heartbeat+.;F:
@file000[ I"(path, &block);FI"lib/rack/builder.rb;F
Zerion Mini Shell 1.0