Files
discourse/app/controllers/site_controller.rb
T

26 lines
376 B
Ruby
Raw Normal View History

2014-02-17 10:56:25 +09:30
require_dependency 'site_serializer'
class SiteController < ApplicationController
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-17 10:56:25 +09:30
end
end