lib/rest-ftp-daemon/api/root.rb in rest-ftp-daemon-0.245.1 vs lib/rest-ftp-daemon/api/root.rb in rest-ftp-daemon-0.246.0

- old
+ new

@@ -14,12 +14,12 @@ do_not_route_options! format :json content_type :json, 'application/json; charset=utf-8' - mount RestFtpDaemon::API::Jobs => "/jobs" - mount RestFtpDaemon::API::Dashbaord => "/" + mount RestFtpDaemon::API::Jobs => MOUNT_JOBS + mount RestFtpDaemon::API::Dashbaord => MOUNT_BOARD ### INITIALIZATION def initialize @@ -43,9 +43,16 @@ ### Common request logging before do log_info "HTTP #{request.request_method} #{request.fullpath}", params + end + + + ### ROOT URL ACCESS + + get "/" do + redirect Helpers.dashboard_filter_url() end ### SHOW ROUTES