Skip to content

Commit cde8448

Browse files
committed
enhacne: make api global visitable
1 parent bf761e1 commit cde8448

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

robyn_api/python_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def pandas_builder(jsondata):
7777
returndf = pd.DataFrame(jsondata)
7878
return returndf
7979

80-
def robyn_api(argument,payload=0,api='http://127.0.0.1:9999/{}'):
80+
def robyn_api(argument,payload=0,api='http://0.0.0.0:9999/{}'):
8181
"""
8282
Calls the Robyn API with the specified argument and payload.
8383
Args:

robyn_api/robynapi_call.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ apiPath <- paste0(path2file,'/robynapi_enpoints.R')
3131

3232

3333
### Command to run Robyn API
34-
r<-plumb(apiPath)$run(port=9999)
34+
r<-plumb(apiPath)$run(port=9999,host="0.0.0.0")

0 commit comments

Comments
 (0)