summaryrefslogtreecommitdiff
path: root/lib/oxidized/api/web/webapp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/api/web/webapp.rb')
-rw-r--r--lib/oxidized/api/web/webapp.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/oxidized/api/web/webapp.rb b/lib/oxidized/api/web/webapp.rb
index 4cec200..3d66ba8 100644
--- a/lib/oxidized/api/web/webapp.rb
+++ b/lib/oxidized/api/web/webapp.rb
@@ -1,7 +1,7 @@
require 'sinatra/base'
require 'sinatra/json'
require 'haml'
-require 'pp'
+require 'sass'
module Oxidized
module API
class WebApp < Sinatra::Base
@@ -68,10 +68,11 @@ module Oxidized
out :node
end
- #get '/node/:node' do
- # @data = nodes.show params[:node]
- # out
- #end
+ get '/stylesheets/*.css' do
+ sass params[:splat].first.to_sym
+ end
+
+ private
def out template=:default
if @json or params[:format] == 'json'