Add a constant to SIADEURL
This commit is contained in:
parent
a0a56d6f67
commit
658bd95f86
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue