Commit 72f196fa authored by Nick Ethier's avatar Nick Ethier

Add /version route

parent 3c63df69
...@@ -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