Revert "Revert "Merge pull request #4552 from tchak/champ-communes""

This reverts commit 4373cb22cb.
This commit is contained in:
Paul Chavard 2020-01-14 18:46:07 +01:00
parent 8dd2ecfd2c
commit 14295db9ad
63 changed files with 260 additions and 1119 deletions

View file

@ -209,13 +209,6 @@ Rails.application.routes.draw do
resources :instructeurs, only: [:index, :create, :destroy]
end
#
# Addresses
#
get 'address/suggestions' => 'address#suggestions'
get 'address/geocode' => 'address#geocode'
resources :invites, only: [:show] do
collection do
post 'dossier/:dossier_id', to: 'invites#create', as: :dossier
@ -394,6 +387,14 @@ Rails.application.routes.draw do
end
end
if Rails.env.test?
scope 'test/api_geo' do
get 'regions' => 'api_geo_test#regions'
get 'communes' => 'api_geo_test#communes'
get 'departements' => 'api_geo_test#departements'
end
end
#
# Legacy routes
#