Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit 34a1923

Browse files
main.py now routes poilicy items
Add routes for privacy policy.
1 parent 63f351d commit 34a1923

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/main.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def pdf_tos():
3232
return send_file("templates/legal/tos-pdf.pdf")
3333

3434

35+
@app.route("/privacy-pdf")
36+
def pdf_policy():
37+
"""Reroute to ToS PDF."""
38+
return send_file("templates/legal/privacy-pdf.pdf")
39+
40+
3541
@app.route("/<doc_id>")
3642
@app.route("/editor/<doc_id>")
3743
def editor(doc_id):
@@ -77,6 +83,14 @@ def privacy():
7783
return render_template("legal/privacy.html")
7884

7985

86+
@app.route("/privacy/archive/<doc_id>")
87+
@app.route("/privacypolicy/archive/<doc_id>")
88+
@app.route("/privacy-policy/archive/<doc_id>")
89+
def privacy_archive(doc_id):
90+
"""Render privacy policy from archive."""
91+
return render_template(f"legal/archive/privacy-{doc_id}.html")
92+
93+
8094
@app.route("/licence")
8195
def licence():
8296
"""Render Project licence."""

0 commit comments

Comments
 (0)