From: Andy Allan Date: Wed, 8 Jul 2020 16:51:27 +0000 (+0200) Subject: Remove unnecessary layout calls from api controllers X-Git-Tag: live~2679^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/8c326a6c1fcea02c2937579524c30b5c77c4d8eb?hp=--cc Remove unnecessary layout calls from api controllers These were left over from the refactoring of the controllers into api and non-api versions. --- 8c326a6c1fcea02c2937579524c30b5c77c4d8eb diff --git a/app/controllers/api/changesets_controller.rb b/app/controllers/api/changesets_controller.rb index 316015228..a5a37b485 100644 --- a/app/controllers/api/changesets_controller.rb +++ b/app/controllers/api/changesets_controller.rb @@ -2,7 +2,6 @@ module Api class ChangesetsController < ApiController - layout "site" require "xml/libxml" before_action :authorize, :only => [:create, :update, :upload, :close, :subscribe, :unsubscribe] diff --git a/app/controllers/api/notes_controller.rb b/app/controllers/api/notes_controller.rb index a73240e5f..cd71b4374 100644 --- a/app/controllers/api/notes_controller.rb +++ b/app/controllers/api/notes_controller.rb @@ -1,7 +1,5 @@ module Api class NotesController < ApiController - layout "site", :only => [:mine] - before_action :check_api_readable before_action :setup_user_auth, :only => [:create, :comment, :show] before_action :authorize, :only => [:close, :reopen, :destroy, :comment] diff --git a/app/controllers/api/traces_controller.rb b/app/controllers/api/traces_controller.rb index 0b441bef9..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 diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index d3387bd5f..d97e8774e 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -1,7 +1,5 @@ module Api class UsersController < ApiController - layout "site", :except => [:api_details] - before_action :disable_terms_redirect, :only => [:details] before_action :authorize, :only => [:details, :gpx_files]