examples/template.rb in goliath-1.0.0 vs examples/template.rb in goliath-1.0.1
- old
+ new
@@ -38,11 +38,10 @@
Goliath::Plugin::Latency.recent_latency
end
def response(env)
case env['PATH_INFO']
- # TODO(dj2): change /root -> / when rack > 1.4.0 is released
- when '/root' then [200, {}, haml(:root)]
+ when '/' then [200, {}, haml(:root)]
when '/haml_str' then [200, {}, haml("%h1 Header")]
when '/debug' then [200, {}, haml(:debug)]
when '/oops' then [200, {}, haml(:no_such_template)] # will 500
when '/joke' then
[200, {}, markdown(:joke, :locals => {:title => "HERE IS A JOKE"})]