compression!
authorSteve Coast <steve@asklater.com>
Fri, 1 Dec 2006 11:07:31 +0000 (11:07 +0000)
committerSteve Coast <steve@asklater.com>
Fri, 1 Dec 2006 11:07:31 +0000 (11:07 +0000)
app/controllers/api_controller.rb
app/controllers/node_controller.rb
app/controllers/segment_controller.rb
app/controllers/way_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
index 5e5784e68dbc06a0bc4757ac56a86e04b140b118..27c21c4815a78fea0da3c0846ac8d72559ba82b1 100644 (file)
@@ -2,6 +2,7 @@ class NodeController < ApplicationController
   require 'xml/libxml'
 
   before_filter :authorize
+  after_filter :compress_output
 
   def create
     response.headers["Content-Type"] = 'application/xml'
index 048e599c3fb434804dcf79a2c1123d35c56cc3ed..7e77609f303a2908a14c14cebcac73cf6661ab60 100644 (file)
@@ -2,6 +2,7 @@ class SegmentController < ApplicationController
   require 'xml/libxml'
 
   before_filter :authorize
+  after_filter :compress_output
 
   def create
     response.headers["Content-Type"] = 'application/xml'
index ff568620baf3b71177e6a1fbb98dbeffe594033f..a2d2157607da655ffd2af1346871cfa06b529288 100644 (file)
@@ -2,6 +2,7 @@ class WayController < ApplicationController
   require 'xml/libxml'
 
   before_filter :authorize
+  after_filter :compress_output
 
   def create
     if request.put?