SIADEURL -> API_ENTREPRISE_URL
This commit is contained in:
parent
658bd95f86
commit
57b42e24e5
2 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ class SIADE::API
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.url(resource_name, siret_or_siren)
|
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
|
end
|
||||||
|
|
||||||
def self.params(siret_or_siren, procedure_id)
|
def self.params(siret_or_siren, procedure_id)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
SIADEURL = 'https://entreprise.api.gouv.fr/v2'
|
API_ENTREPRISE_URL = 'https://entreprise.api.gouv.fr/v2'
|
||||||
else
|
else
|
||||||
SIADEURL = 'https://staging.entreprise.api.gouv.fr/v2'
|
API_ENTREPRISE_URL = 'https://staging.entreprise.api.gouv.fr/v2'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue