From 7475266af746cc712b34b9f8b2dd187a24d6fea9 Mon Sep 17 00:00:00 2001 From: Galax028 Date: Tue, 3 Aug 2021 11:20:55 +0700 Subject: [PATCH] more fixes --- .gitignore | 1 + proxy.py => api/proxy.py | 4 ++-- vercel.json | 15 --------------- 3 files changed, 3 insertions(+), 17 deletions(-) create mode 100644 .gitignore rename proxy.py => api/proxy.py (81%) delete mode 100644 vercel.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba0430d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__/ \ No newline at end of file diff --git a/proxy.py b/api/proxy.py similarity index 81% rename from proxy.py rename to api/proxy.py index 1339b2d..89ffa3e 100644 --- a/proxy.py +++ b/api/proxy.py @@ -8,9 +8,9 @@ app = Flask(__name__) @app.get("/") def startpage(file = None): if not file: - return send_from_directory("./", "startpage.html") + return send_from_directory("../", "startpage.html") else: - return send_from_directory("./", file) + return send_from_directory("../", file) @app.get("/ac/") diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 49df0b1..0000000 --- a/vercel.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 2, - "builds": [ - { - "src": "./proxy.py", - "use": "@vercel/python" - } - ], - "routes": [ - { - "src": "/(.*)", - "dest": "/" - } - ] -} \ No newline at end of file