feat: Add resume pdf route and fix some print formatting
All checks were successful
Build Docker / BuildImage (push) Successful in 1m11s
All checks were successful
Build Docker / BuildImage (push) Successful in 1m11s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user