Skip to content

Commit

Permalink
Fix back-end ip and port for heroku app
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvis MBONING committed Jun 2, 2020
1 parent 37a0182 commit 6e8e381
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/models/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6e8e381

Please sign in to comment.