mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
11 lines
326 B
Ruby
11 lines
326 B
Ruby
class API::StylesheetsController < API::ApiController
|
|
caches_page :show # magic happens here
|
|
|
|
def show
|
|
@stylesheet = Stylesheet.find(params[:id])
|
|
respond_to do |format|
|
|
format.html # regular ERB template
|
|
format.css { render :text => @stylesheet.contents, :content_type => 'text/css' }
|
|
end
|
|
end
|
|
end |