more fixes

This commit is contained in:
Galax028 2021-08-03 11:20:55 +07:00
parent d8b1fd87af
commit 7475266af7
3 changed files with 3 additions and 17 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
__pycache__/

View File

@ -8,9 +8,9 @@ app = Flask(__name__)
@app.get("/<string:file>")
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/<string:query>")

View File

@ -1,15 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "./proxy.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}