compression!
This commit is contained in:
parent
25936fad05
commit
c38e4bf4a0
4 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -2,6 +2,7 @@ class WayController < ApplicationController
|
|||
require 'xml/libxml'
|
||||
|
||||
before_filter :authorize
|
||||
after_filter :compress_output
|
||||
|
||||
def create
|
||||
if request.put?
|
||||
|
|
Loading…
Add table
Reference in a new issue