feat: Add resume pdf route and fix some print formatting
All checks were successful
Build Docker / BuildImage (push) Successful in 1m11s

This commit is contained in:
2025-06-21 17:54:06 +10:00
parent 0ec96b4461
commit ec3563093f
4 changed files with 82 additions and 73 deletions

View File

@@ -1114,6 +1114,13 @@ def catch_all(path: str):
), 404
return render_template("404.html"), 404
@app.route("/resume.pdf")
def resume_pdf():
# Check if file exists
if os.path.isfile("data/resume.pdf"):
return send_file("data/resume.pdf")
return render_template("404.html"), 404
# endregion