mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 03:32:18 -05:00
20 lines
588 B
Ruby
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
|