X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2def62ee19b2b7e6fa7ede5a486a7b12abf9529d..086f31f291f1646fda292ca838784cccc61a75ad:/app/controllers/api/traces_controller.rb?ds=sidebyside diff --git a/app/controllers/api/traces_controller.rb b/app/controllers/api/traces_controller.rb index 000bb7f90..6c77f9dc4 100644 --- a/app/controllers/api/traces_controller.rb +++ b/app/controllers/api/traces_controller.rb @@ -1,7 +1,5 @@ module Api class TracesController < ApiController - layout "site", :except => :georss - before_action :authorize_web before_action :set_locale before_action :authorize @@ -159,7 +157,7 @@ module Api end def offline_error - report_error "GPX files offline for maintenance", :service_unavailable + report_error "GPX files offline for maintenance", :service_unavailable if Settings.status == "gpx_offline" end end end