Merge remote-tracking branch 'upstream/pull/5545'

This commit is contained in:
Tom Hughes 2025-01-24 15:10:03 +00:00
commit 49e257200e
9 changed files with 30 additions and 30 deletions

View file

@ -1,5 +1,5 @@
module Api
class MapController < ApiController
class MapsController < ApiController
authorize_resource :class => false
before_action :set_request_formats
@ -13,7 +13,7 @@ module Api
# Then all the relations that reference the already found nodes and ways are
# fetched. All the nodes and ways that are referenced by those ways are then
# fetched. Finally all the xml is returned.
def index
def show
# Figure out the bbox
# check boundary is sane and area within defined
# see /config/application.yml

View file

@ -19,7 +19,7 @@ class ExportController < ApplicationController
case style
when "osm"
# redirect to API map get
redirect_to :controller => "api/map", :action => "index", :bbox => bbox
redirect_to api_map_path(:bbox => bbox)
when "mapnik"
# redirect to a special 'export' cgi script