]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
compression!
[rails.git] / app / controllers / api_controller.rb
index aa84194146ac205d2155a211581f16f6d128a9fe..e829a173266192b582533d1b206046e3c7bdfee2 100644 (file)
@@ -1,5 +1,8 @@
 class ApiController < ApplicationController
 
+  before_filter :authorize
+  after_filter :compress_output
+
   def map
     response.headers["Content-Type"] = 'application/xml'
     # Figure out the bbox