Skip to content

Commit

Permalink
Added hello ep
Browse files Browse the repository at this point in the history
  • Loading branch information
fogus committed Aug 6, 2013
1 parent 6be495b commit 79bf460
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ run Proc.new { |env|
[301, {'Location' => 'http://incanter.org/downloads/cljr-installer.jar'}, ['Redirecting']]
elsif path =~ /src$/
[301, {'Location' => 'http://github.com/joyofclojure/book-source'}, ['Redirecting']]
elsif path =~ /hello$/
[200, {'Content-Type' => 'text/plain'}, 'Hello Cleveland']
else
# Pass the request to the directory app
Rack::Directory.new(@root).call(env)
Expand Down

0 comments on commit 79bf460

Please sign in to comment.