mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
cab92f947c
This will be essential for entirely local Discourse clients.
25 lines
376 B
Ruby
25 lines
376 B
Ruby
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
|
|
end
|
|
|
|
end
|