mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
fix stylesheet view
This commit is contained in:
parent
9069139bc4
commit
2bbce711d9
@ -7,9 +7,5 @@ class API::StylesheetsController < API::ApiController
|
||||
|
||||
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
|
||||
|
1
app/views/api/stylesheets/show.css.erb
Normal file
1
app/views/api/stylesheets/show.css.erb
Normal file
@ -0,0 +1 @@
|
||||
<%= @stylesheet.contents %>
|
Loading…
Reference in New Issue
Block a user