mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-11-04 01:03:02 +00:00 
			
		
		
		
	Fix #1456 (Added route to robots.txt)
This commit is contained in:
		@@ -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>")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user