Spaces:
Sleeping
Sleeping
File size: 509 Bytes
fdedf13 3f41dac |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from components.mongodbconnection import provideClient
mc=provideClient()
db=mc["x402ify_db"]
coll=db["x402ify_col"]
def checkDynamicEndpoints(owner):
document=coll.find_one({"owner":owner})
if document:
endpoints=document["dynamicendpoints"]
if len(endpoints) == 0:
return {"status":False,"dynamicendpoints":[]}
else:
return {"status":True,"dynamicendpoints":endpoints}
else:
return {"status":False,"dynamicendpoints":[]} |