SIADEURL -> API_ENTREPRISE_URL

This commit is contained in:
gregoirenovel 2018-03-15 14:20:55 +01:00
parent 658bd95f86
commit 57b42e24e5
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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