diff --git a/server.py b/server.py index 91089d0..d2f56e1 100755 --- a/server.py +++ b/server.py @@ -112,9 +112,20 @@ def set_setWorld(): def docs(): pass -@app.route('*',['GET']) +@app.route('/',['GET']) def req_get(): - return" 404" + try: + with open('./pkgs.json', 'tr') as fn: + data = fn.read() + pkg_list = json.loads(data) + #print(pkg_list) + return json.dumps(pkg_list) + except Exception(e): + print(e) + return "404" + + + #return" 403" diff --git a/utils/__pycache__/findfsdb.cpython-39.pyc b/utils/__pycache__/findfsdb.cpython-39.pyc index 5254e0a..71d4959 100644 Binary files a/utils/__pycache__/findfsdb.cpython-39.pyc and b/utils/__pycache__/findfsdb.cpython-39.pyc differ diff --git a/utils/__pycache__/utils.cpython-39.pyc b/utils/__pycache__/utils.cpython-39.pyc index 5c25022..ca166b9 100644 Binary files a/utils/__pycache__/utils.cpython-39.pyc and b/utils/__pycache__/utils.cpython-39.pyc differ