Browse Source

Fix trailing whitespace and reformat long string

master
Natalie Pendragon 9 months ago
parent
commit
29d6013770
  1. 12
      serve/views.py

12
serve/views.py

@ -59,8 +59,16 @@ def status(request):
@app.route("/robots.txt", strict_trailing_slash=False)
def status(request):
return Response(Status.SUCCESS, "text/plain",
"User-agent: researcher\nUser-agent: indexer\nUser-agent: archiver\nDisallow: /search\nDisallow: /backlinks\n\nUser-agent: *\nDisallow: /add-seed\nDisallow: /threads")
return Response(Status.SUCCESS, "text/plain",
"""User-agent: researcher
User-agent: indexer
User-agent: archiver
Disallow: /search
Disallow: /backlinks
User-agent: *
Disallow: /add-seed
Disallow: /threads""")
@app.route("/favicon.txt", strict_trailing_slash=False)
def favicon(request):

Loading…
Cancel
Save