Add a constant to SIADEURL

This commit is contained in:
gregoirenovel 2018-03-15 14:20:26 +01:00
parent a0a56d6f67
commit 658bd95f86
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, "v2", resource_name, siret_or_siren].join("/")
[SIADEURL, 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'
SIADEURL = 'https://entreprise.api.gouv.fr/v2'
else
SIADEURL = 'https://staging.entreprise.api.gouv.fr'
SIADEURL = 'https://staging.entreprise.api.gouv.fr/v2'
end