From c16616f80c6756d407795498335ba779c11e5fbb Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Thu, 27 Feb 2014 13:58:15 +0200 Subject: Redirect / to /nodes --- lib/oxidized/api/web/webapp.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/oxidized/api') 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' -- cgit v1.2.1