fix: add a robots.txt endpoint
This commit is contained in:
parent
e2a5efdbc4
commit
5d936900be
2
lumi2/static/robots.txt
Normal file
2
lumi2/static/robots.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
@ -92,6 +92,13 @@ def about():
|
|||||||
return render_template('usermanager/about.html')
|
return render_template('usermanager/about.html')
|
||||||
|
|
||||||
|
|
||||||
|
@bp.route('/robots.txt')
|
||||||
|
def robots():
|
||||||
|
"""Serves the 'robots.txt' file."""
|
||||||
|
|
||||||
|
return send_from_directory(current_app.static_folder, "robots.txt")
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/users/view/<string:username>")
|
@bp.route("/users/view/<string:username>")
|
||||||
@login_required
|
@login_required
|
||||||
def user_view(username: str):
|
def user_view(username: str):
|
||||||
|
Loading…
Reference in New Issue
Block a user