summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/api/web/webapp.rb4
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'