2014-02-16 20:26:25 -05:00
|
|
|
require_dependency 'site_serializer'
|
|
|
|
|
|
|
|
class SiteController < ApplicationController
|
|
|
|
|
2015-05-20 03:12:16 -04:00
|
|
|
skip_before_filter :preload_json
|
|
|
|
|
2015-03-04 23:49:03 -05:00
|
|
|
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
|
2014-02-16 20:26:25 -05:00
|
|
|
end
|
2014-02-21 12:31:54 -05:00
|
|
|
|
|
|
|
end
|