lib/print.rb in mapfish-1.3.3 vs lib/print.rb in mapfish-1.3.4

- old
+ new

@@ -15,10 +15,11 @@ # # You should have received a copy of the GNU Lesser General Public License # along with MapFish Server. If not, see <http://www.gnu.org/licenses/>. # +require 'mapfish' require 'popen4' require 'tmpdir' Mime::Type.register 'application/pdf', :pdf @@ -26,16 +27,9 @@ module Print class JavaError < Exception def initialize(cmd, message) super(cmd+"\n"+message) end - end - - # Used to add the needed routes for the print module - def self.add_routes(map, controller = 'print', base = 'print') - map.connect(base+'/info.:format', :controller=>controller, :action=>'info', :method=>:get) - map.connect(base+'/create.:format', :controller=>controller, :action=>'create', :method=>:post) - map.connect(base+'/:id.:format', :controller=>controller, :action=>'show', :method=>:get) end # To have a controller for the print module, just mix-in this module to # one of your controllers. This controller must have an attribute @configFile. # For example: