Skip to content
Browse files

can fetch .css file

  • Loading branch information...
1 parent d42c133 commit 069386035aef19ceb30e82c15edf8fb6833586bf @croaky croaky committed Nov 19, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 app.rb
View
4 app.rb
@@ -12,6 +12,10 @@ class App < Sinatra::Base
'Access-Control-Allow-Origin' => '*'
end
+ get '/:font_face.css' do
+ open("#{ENV['S3_URL']}/#{params[:font_face]}.css").read
+ end
+
get '/:font_face' do
headers['Content-Type'] = case params[:font_face]
when /\.ttf$/ then 'font/truetype'

0 comments on commit 0693860

Please sign in to comment.
Something went wrong with that request. Please try again.