feat: Finish updating resume template
All checks were successful
Check Code Quality / RuffCheck (push) Successful in 1m12s
Build Docker / BuildImage (push) Successful in 1m24s

This commit is contained in:
2025-11-04 17:17:44 +11:00
parent 9e8e23165e
commit c45a30675c
9 changed files with 249 additions and 237 deletions

View File

@@ -661,13 +661,20 @@ def hosting_post():
return json_response(request, "Failed to send enquiry", 500)
return json_response(request, "Enquiry sent", 200)
@app.route("/resume")
def resume():
# Check if arg for support is passed
support = request.args.get("support")
return render_template(
"resume.html", support=support)
@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 error_response(request, message="Resume not found")
# Check if arg for support is passed
support = request.args.get("support")
if support:
return send_file("data/resume_support.pdf")
return send_file("data/resume.pdf")
@app.route("/tools")