Initial implementation of /policies page

This commit is contained in:
Matthew Wild
2021-08-28 14:09:46 +01:00
parent 846a5e49fd
commit fda822e9d9
3 changed files with 147 additions and 0 deletions

View File

@@ -111,6 +111,16 @@ async def about() -> str:
extra_versions=extra_versions,
)
@bp.route("/policies")
async def policies() -> str:
return await render_template(
"policies.html",
snikket_domain=current_app.config["SNIKKET_DOMAIN"],
retention_days=current_app.config["RETENTION_DAYS"],
operator_name=current_app.config["OPERATOR_NAME"],
provider_name=current_app.config["PROVIDER_NAME"],
)
@bp.route("/meta/demo.html")
async def demo() -> str: