mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-23 22:12:30 -05:00
e5888cf090
(uploads / avatars / non GET requests)
27 lines
412 B
Ruby
27 lines
412 B
Ruby
require_dependency 'site_serializer'
|
|
|
|
class SiteController < ApplicationController
|
|
|
|
skip_before_filter :preload_json
|
|
|
|
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
|