Revert "Revert "Merge pull request #4552 from tchak/champ-communes""
This reverts commit 4373cb22cb
.
This commit is contained in:
parent
8dd2ecfd2c
commit
14295db9ad
63 changed files with 260 additions and 1119 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue