1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

fix stylesheet view

This commit is contained in:
Sylvain 2020-03-24 18:52:53 +01:00
parent 9069139bc4
commit 2bbce711d9
2 changed files with 1 additions and 4 deletions

View File

@ -7,9 +7,5 @@ class API::StylesheetsController < API::ApiController
def show def show
@stylesheet = Stylesheet.find(params[:id]) @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
end end

View File

@ -0,0 +1 @@
<%= @stylesheet.contents %>