Don't create sessions for API calls.
This commit is contained in:
parent
8dfecbfbb2
commit
e70d94c54a
9 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
class AmfController < ApplicationController
|
||||
require 'stringio'
|
||||
|
||||
session :off
|
||||
before_filter :check_availability
|
||||
|
||||
# to log:
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class ApiController < ApplicationController
|
||||
|
||||
session :off
|
||||
after_filter :compress_output
|
||||
|
||||
#COUNT is the number of map requests to allow before exiting and starting a new process
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class NodeController < ApplicationController
|
||||
require 'xml/libxml'
|
||||
|
||||
session :off
|
||||
before_filter :authorize, :only => [:create, :update, :delete]
|
||||
before_filter :check_availability, :only => [:create, :update, :delete]
|
||||
after_filter :compress_output
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class OldNodeController < ApplicationController
|
||||
require 'xml/libxml'
|
||||
|
||||
session :off
|
||||
after_filter :compress_output
|
||||
|
||||
def history
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class OldSegmentController < ApplicationController
|
||||
require 'xml/libxml'
|
||||
|
||||
session :off
|
||||
after_filter :compress_output
|
||||
|
||||
def history
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class OldWayController < ApplicationController
|
||||
require 'xml/libxml'
|
||||
|
||||
session :off
|
||||
after_filter :compress_output
|
||||
|
||||
def history
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class SegmentController < ApplicationController
|
||||
require 'xml/libxml'
|
||||
|
||||
session :off
|
||||
before_filter :authorize, :only => [:create, :update, :delete]
|
||||
before_filter :check_availability, :only => [:create, :update, :delete]
|
||||
after_filter :compress_output
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class SwfController < ApplicationController
|
||||
before_filter :check_availability
|
||||
session :off
|
||||
before_filter :check_availability
|
||||
|
||||
# to log:
|
||||
# RAILS_DEFAULT_LOGGER.error("Args: #{args[0]}, #{args[1]}, #{args[2]}, #{args[3]}")
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class WayController < ApplicationController
|
||||
require 'xml/libxml'
|
||||
|
||||
session :off
|
||||
before_filter :authorize, :only => [:create, :update, :delete]
|
||||
before_filter :check_availability, :only => [:create, :update, :delete]
|
||||
after_filter :compress_output
|
||||
|
|
Loading…
Add table
Reference in a new issue