Commits

Sachirou Inoue committed 89c1d76

fix send_file path (experimental).

  • Participants
  • Parent commits 3132b1d

Comments (0)

Files changed (1)

 
 get '*.css' do
   #scss params[:splat]
-  send_file "views/style#{params[:splat]}.css"
+  send_file "/views/style#{params[:splat]}.css"
 end
 
 
 get '*.js' do
   #coffee params[:splat]
-  send_file "views/script#{params[:splat]}.js"
+  send_file "/views/script#{params[:splat]}.js"
 end
 
 
 
 
 get %r{/(.+?)\.(png|jpg|jpeg|webp)} do
-  send_file "image/#{params[:captures][0]}.#{params[:captures][1]}"
+  send_file "/image/#{params[:captures][0]}.#{params[:captures][1]}"
 end