diff options
author | Saku Ytti <saku@ytti.fi> | 2014-02-27 13:58:15 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-02-27 13:58:15 +0200 |
commit | c16616f80c6756d407795498335ba779c11e5fbb (patch) | |
tree | e5d62b3e6012cbc7fc0e9f3ba652bef169162920 /lib/oxidized | |
parent | 7fd0f552bc88e128b9f4090ee6b89beb3d6d837d (diff) |
Redirect / to /nodes
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/api/web/webapp.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/api/web/webapp.rb b/lib/oxidized/api/web/webapp.rb index 13bd0ab..4cec200 100644 --- a/lib/oxidized/api/web/webapp.rb +++ b/lib/oxidized/api/web/webapp.rb @@ -6,6 +6,10 @@ module Oxidized module API class WebApp < Sinatra::Base + get '/' do + redirect '/nodes' + end + get '/nodes.?:format?' do @data = nodes.list.map do |node| node[:status] = 'never' |