]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Allow the API to be taken offline completely as well as being put into
[rails.git] / app / controllers / api_controller.rb
index b39cbddf5e639e4f49fcf8a26be3ff0360f64165..3555260d283bfb5498cf50ce95559cc67bce8ca3 100644 (file)
@@ -1,6 +1,7 @@
 class ApiController < ApplicationController
 
   session :off
+  before_filter :check_read_availability, :except => [:capabilities]
   after_filter :compress_output
 
   #COUNT is the number of map requests to allow before exiting and starting a new process