Commit ee6f1405 authored by Ozzieisaacs's avatar Ozzieisaacs

Fix #1456 (Added route to robots.txt)

parent ee3541d7
......@@ -1256,6 +1256,9 @@ def render_archived_books(page, order):
def get_cover(book_id):
return get_book_cover(book_id)
@web.route("/robots.txt")
def get_robots():
return send_from_directory(constants.STATIC_DIR, "robots.txt")
@web.route("/show/<int:book_id>/<book_format>", defaults={'anyname': 'None'})
@web.route("/show/<int:book_id>/<book_format>/<anyname>")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment