~cedric/newspipe

51a4e7b1f0fb1267d4d84e5239ed068e40efda00 — Cédric Bonhomme 3 months ago 00a129b
added robots dot txt page.
2 files changed, 8 insertions(+), 0 deletions(-)

A newspipe/templates/robots.txt
M newspipe/web/views/views.py
A newspipe/templates/robots.txt => newspipe/templates/robots.txt +2 -0
@@ 0,0 1,2 @@
User-agent: *
Disallow: /

M newspipe/web/views/views.py => newspipe/web/views/views.py +6 -0
@@ 119,3 119,9 @@ def about_more():
            talisman.content_security_policy
        ),
    )


@current_app.route("/robots.txt", methods=["GET"])
def robots():
    """Robots dot txt page."""
    return render_template("robots.txt"), 200, {"Content-Type": "text/plain"}