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

Merge pull request #15 from nse/master

/version route
parents 3c63df69 72f196fa
...@@ -49,6 +49,11 @@ module Noah ...@@ -49,6 +49,11 @@ module Noah
haml :index, :format => :html5, :locals => {:redis_version => Ohm.redis.info["redis_version"].to_s, :noah_version => Noah::VERSION} haml :index, :format => :html5, :locals => {:redis_version => Ohm.redis.info["redis_version"].to_s, :noah_version => Noah::VERSION}
end 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 not_found do
content_type "application/json" content_type "application/json"
erb :'404' erb :'404'
......
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