Files
manyfold/app/controllers/robots_controller.rb
T

20 lines
588 B
Ruby

class RobotsController < ActionController::Base # rubocop:disable Rails/ApplicationController
protect_from_forgery with: :exception
include Pundit::Authorization
def index
respond_to do |format|
format.text
end
end
def sitemap
@creators = CreatorPolicy::Scope.new(nil, Creator).resolve.local.filter(&:indexable?)
@collections = CollectionPolicy::Scope.new(nil, Collection).resolve.local.filter(&:indexable?)
@models = ModelPolicy::Scope.new(nil, Model).resolve.local.filter(&:indexable?)
respond_to do |format|
format.xml
end
end
end