mirror of
https://github.com/Galax028/startpage.git
synced 2024-11-21 22:53:08 +01:00
Fix things
This commit is contained in:
parent
dd1fe07e53
commit
f1f345b5da
5
proxy.py
5
proxy.py
@ -4,12 +4,13 @@ from flask import Flask, send_from_directory
|
||||
server = Flask(__name__)
|
||||
|
||||
|
||||
@server.get("/")
|
||||
@server.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)
|
||||
|
||||
|
||||
@server.get("/ac/<string:query>")
|
||||
|
@ -8,8 +8,8 @@
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "./(.*)",
|
||||
"dest": "./"
|
||||
"src": "/(.*)",
|
||||
"dest": "/"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user