Remove /help route and templates

This commit is contained in:
leigh-mil
2020-01-20 16:33:54 -05:00
parent 0484d9b77f
commit bdc03fb0a2
6 changed files with 3 additions and 212 deletions

View File

@@ -10,7 +10,6 @@ UNPROTECTED_ROUTES = [
"atst.login_redirect",
"atst.logout",
"atst.unauthorized",
"atst.helpdocs",
"static",
"atst.about",
]

View File

@@ -42,16 +42,6 @@ def root():
return render_template("login.html", redirect_url=redirect_url)
@bp.route("/help")
@bp.route("/help/<path:doc>")
def helpdocs(doc=None):
docs = [os.path.splitext(file)[0] for file in os.listdir("templates/help/docs")]
if doc:
return render_template("help/docs/{}.html".format(doc), docs=docs, doc=doc)
else:
return render_template("help/index.html", docs=docs, doc=doc)
@bp.route("/home")
def home():
return render_template("home.html")