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
|
class AmfController < ApplicationController
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
|
|
||||||
|
session :off
|
||||||
before_filter :check_availability
|
before_filter :check_availability
|
||||||
|
|
||||||
# to log:
|
# to log:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
class ApiController < ApplicationController
|
class ApiController < ApplicationController
|
||||||
|
|
||||||
|
session :off
|
||||||
after_filter :compress_output
|
after_filter :compress_output
|
||||||
|
|
||||||
#COUNT is the number of map requests to allow before exiting and starting a new process
|
#COUNT is the number of map requests to allow before exiting and starting a new process
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class NodeController < ApplicationController
|
class NodeController < ApplicationController
|
||||||
require 'xml/libxml'
|
require 'xml/libxml'
|
||||||
|
|
||||||
|
session :off
|
||||||
before_filter :authorize, :only => [:create, :update, :delete]
|
before_filter :authorize, :only => [:create, :update, :delete]
|
||||||
before_filter :check_availability, :only => [:create, :update, :delete]
|
before_filter :check_availability, :only => [:create, :update, :delete]
|
||||||
after_filter :compress_output
|
after_filter :compress_output
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class OldNodeController < ApplicationController
|
class OldNodeController < ApplicationController
|
||||||
require 'xml/libxml'
|
require 'xml/libxml'
|
||||||
|
|
||||||
|
session :off
|
||||||
after_filter :compress_output
|
after_filter :compress_output
|
||||||
|
|
||||||
def history
|
def history
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class OldSegmentController < ApplicationController
|
class OldSegmentController < ApplicationController
|
||||||
require 'xml/libxml'
|
require 'xml/libxml'
|
||||||
|
|
||||||
|
session :off
|
||||||
after_filter :compress_output
|
after_filter :compress_output
|
||||||
|
|
||||||
def history
|
def history
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class OldWayController < ApplicationController
|
class OldWayController < ApplicationController
|
||||||
require 'xml/libxml'
|
require 'xml/libxml'
|
||||||
|
|
||||||
|
session :off
|
||||||
after_filter :compress_output
|
after_filter :compress_output
|
||||||
|
|
||||||
def history
|
def history
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class SegmentController < ApplicationController
|
class SegmentController < ApplicationController
|
||||||
require 'xml/libxml'
|
require 'xml/libxml'
|
||||||
|
|
||||||
|
session :off
|
||||||
before_filter :authorize, :only => [:create, :update, :delete]
|
before_filter :authorize, :only => [:create, :update, :delete]
|
||||||
before_filter :check_availability, :only => [:create, :update, :delete]
|
before_filter :check_availability, :only => [:create, :update, :delete]
|
||||||
after_filter :compress_output
|
after_filter :compress_output
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
class SwfController < ApplicationController
|
class SwfController < ApplicationController
|
||||||
before_filter :check_availability
|
session :off
|
||||||
|
before_filter :check_availability
|
||||||
|
|
||||||
# to log:
|
# to log:
|
||||||
# RAILS_DEFAULT_LOGGER.error("Args: #{args[0]}, #{args[1]}, #{args[2]}, #{args[3]}")
|
# RAILS_DEFAULT_LOGGER.error("Args: #{args[0]}, #{args[1]}, #{args[2]}, #{args[3]}")
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class WayController < ApplicationController
|
class WayController < ApplicationController
|
||||||
require 'xml/libxml'
|
require 'xml/libxml'
|
||||||
|
|
||||||
|
session :off
|
||||||
before_filter :authorize, :only => [:create, :update, :delete]
|
before_filter :authorize, :only => [:create, :update, :delete]
|
||||||
before_filter :check_availability, :only => [:create, :update, :delete]
|
before_filter :check_availability, :only => [:create, :update, :delete]
|
||||||
after_filter :compress_output
|
after_filter :compress_output
|
||||||
|
|
Loading…
Add table
Reference in a new issue