mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 16:41:18 +08:00
f2ddd44712
The opensearch.xml results in a "site search engine" being added to Chrome, while the sitelinks search tag results in "Search this website" being added to Google Search.
27 lines
437 B
Ruby
27 lines
437 B
Ruby
require_dependency 'site_serializer'
|
|
|
|
class SiteController < ApplicationController
|
|
layout false
|
|
skip_before_filter :preload_json, :check_xhr
|
|
|
|
def site
|
|
render json: Site.json_for(guardian)
|
|
end
|
|
|
|
def settings
|
|
render json: SiteSetting.client_settings_json
|
|
end
|
|
|
|
def custom_html
|
|
render json: custom_html_json
|
|
end
|
|
|
|
def banner
|
|
render json: banner_json
|
|
end
|
|
|
|
def emoji
|
|
render json: custom_emoji
|
|
end
|
|
end
|