mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 12:32:39 -05: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.
26 lines
437 B
Ruby
26 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
|