generated from nathanwoodburn/python-webserver-template
feat: Add redirects for docs and plugin
All checks were successful
Build Docker / BuildImage (push) Successful in 40s
All checks were successful
Build Docker / BuildImage (push) Successful in 40s
This commit is contained in:
parent
8e4b7ab38f
commit
d5b2f4f975
@ -211,6 +211,14 @@ def delete():
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@app.route("/plugin")
|
||||||
|
def plugin():
|
||||||
|
return redirect('https://git.woodburn.au/nathanwoodburn/firesales-plugin')
|
||||||
|
|
||||||
|
@app.route("/docs")
|
||||||
|
def docs():
|
||||||
|
return redirect('https://git.woodburn.au/nathanwoodburn/FireSales/wiki/Home')
|
||||||
|
|
||||||
@app.route("/<path:path>")
|
@app.route("/<path:path>")
|
||||||
def catch_all(path: str):
|
def catch_all(path: str):
|
||||||
if os.path.isfile("templates/" + path):
|
if os.path.isfile("templates/" + path):
|
||||||
|
Loading…
Reference in New Issue
Block a user