Commit e11b5219 authored by John E. Vincent's avatar John E. Vincent

Merge pull request #15 from nse/master

/version route
parents 3c63df69 72f196fa
......@@ -48,6 +48,11 @@ module Noah
haml :index, :format => :html5, :locals => {:redis_version => Ohm.redis.info["redis_version"].to_s, :noah_version => Noah::VERSION}
end
get '/version' do
content_type "application/json"
{:redis_version => Ohm.redis.info["redis_version"].to_s, :noah_version => Noah::VERSION}.to_json
end
not_found do
content_type "application/json"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment