mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:23:45 +08:00
16 lines
377 B
Ruby
16 lines
377 B
Ruby
class Admin::SiteContentsController < Admin::AdminController
|
|
|
|
def show
|
|
site_content = SiteContent.find_or_new(params[:id].to_s)
|
|
render_serialized(site_content, SiteContentSerializer)
|
|
end
|
|
|
|
def update
|
|
site_content = SiteContent.find_or_new(params[:id].to_s)
|
|
site_content.content = params[:content]
|
|
site_content.save!
|
|
|
|
render nothing: true
|
|
end
|
|
end
|