From 6e8e381489040054981fd2734220c550ebc2f46a Mon Sep 17 00:00:00 2001 From: Elvis MBONING Date: Wed, 3 Jun 2020 00:25:43 +0200 Subject: [PATCH] Fix back-end ip and port for heroku app --- front/models/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/models/api.py b/front/models/api.py index 5eaa13b..e1d02d4 100644 --- a/front/models/api.py +++ b/front/models/api.py @@ -16,10 +16,11 @@ import requests import json +from os import environ # ----------------------------------------------------------------------- -HOST_API = "http://127.0.0.1:5000/api/v0.2" +HOST_API = "http://0.0.0.0:{}/api/v0.2".format(environ['PORT']) URL_LOGIN = HOST_API+"/login" URL_CLIENT_GET = HOST_API+"/clients" URL_CLIENT_POST = HOST_API+"/clients/create"