Fix #1456 (Added route to robots.txt)

This commit is contained in:
Ozzieisaacs 2020-07-04 21:22:19 +02:00
parent ee3541d74e
commit ee6f1405d4

View File

@ -1256,6 +1256,9 @@ def render_archived_books(page, order):
def get_cover(book_id): def get_cover(book_id):
return get_book_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>", defaults={'anyname': 'None'})
@web.route("/show/<int:book_id>/<book_format>/<anyname>") @web.route("/show/<int:book_id>/<book_format>/<anyname>")