diff --git a/app/lib/siade/api.rb b/app/lib/siade/api.rb index e8d447af7..86ac6cd1e 100644 --- a/app/lib/siade/api.rb +++ b/app/lib/siade/api.rb @@ -36,7 +36,7 @@ class SIADE::API end def self.url(resource_name, siret_or_siren) - [SIADEURL, resource_name, siret_or_siren].join("/") + [API_ENTREPRISE_URL, resource_name, siret_or_siren].join("/") end def self.params(siret_or_siren, procedure_id) diff --git a/config/initializers/urls.rb b/config/initializers/urls.rb index 7cc508a23..3a82c6557 100644 --- a/config/initializers/urls.rb +++ b/config/initializers/urls.rb @@ -1,5 +1,5 @@ if Rails.env.production? - SIADEURL = 'https://entreprise.api.gouv.fr/v2' + API_ENTREPRISE_URL = 'https://entreprise.api.gouv.fr/v2' else - SIADEURL = 'https://staging.entreprise.api.gouv.fr/v2' + API_ENTREPRISE_URL = 'https://staging.entreprise.api.gouv.fr/v2' end