discourse/app/controllers/site_customizations_controller.rb

10 lines
337 B
Ruby
Raw Normal View History

class SiteCustomizationsController < ApplicationController
skip_before_filter :check_xhr, :redirect_to_login_if_required
def show
expires_in 1.year, public: true
render text: SiteCustomization.stylesheet_contents(params[:key], params[:target] == "mobile" ? :mobile : :desktop),
content_type: "text/css"
end
end