mirror of
https://github.com/Galax028/startpage.git
synced 2025-01-09 11:08:11 +01:00
more fixes
This commit is contained in:
parent
d8b1fd87af
commit
7475266af7
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
__pycache__/
|
@ -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>")
|
15
vercel.json
15
vercel.json
@ -1,15 +0,0 @@
|
||||
{
|
||||
"version": 2,
|
||||
"builds": [
|
||||
{
|
||||
"src": "./proxy.py",
|
||||
"use": "@vercel/python"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "/"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user