Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

formatting

  • Loading branch information...
commit 0efa36684b751c3aba4b067f6f294f0067e9f82e 1 parent 82a7ca5
David Sabeti and Dmitriy Kalinin authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 lifecycle/basic/main.rb
  2. +1 −1  sinatra/modified_simple_app/foo.rb
View
4 lifecycle/basic/main.rb
@@ -1,5 +1,9 @@
require "sinatra"
+get "/health" do
+ "ok"
+end
+
get "/sleep" do
duration = params[:duration].to_i
halt 400, "Duration must be positive integer" unless duration > 0
View
2  sinatra/modified_simple_app/foo.rb
@@ -1,7 +1,7 @@
require 'rubygems'
require 'sinatra'
-get '/' do
+get "/" do
host = ENV['VCAP_DEA_HOST']
port = ENV['VCAP_DEA_PORT']
"<h1>Hello from modified VCAP! via: #{host}:#{port}</h1>"
Please sign in to comment.
Something went wrong with that request. Please try again.