mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
e5888cf090
(uploads / avatars / non GET requests)
14 lines
278 B
Ruby
14 lines
278 B
Ruby
class RobotsTxtController < ApplicationController
|
|
layout false
|
|
skip_before_filter :preload_json, :check_xhr
|
|
|
|
def index
|
|
path = if SiteSetting.allow_index_in_robots_txt
|
|
:index
|
|
else
|
|
:no_index
|
|
end
|
|
|
|
render path, content_type: 'text/plain'
|
|
end
|
|
end
|