SEO tweaks
This commit is contained in:
12
api/app.py
12
api/app.py
@@ -53,6 +53,18 @@ def index():
|
||||
return render_template('index.html')
|
||||
|
||||
|
||||
@app.route('/robots.txt')
|
||||
def robots_txt():
|
||||
"""Serve robots.txt file."""
|
||||
return send_file('../web/static/robots.txt', mimetype='text/plain')
|
||||
|
||||
|
||||
@app.route('/sitemap.xml')
|
||||
def sitemap_xml():
|
||||
"""Serve sitemap.xml file."""
|
||||
return send_file('../web/static/sitemap.xml', mimetype='application/xml')
|
||||
|
||||
|
||||
@app.route('/api/algorithms', methods=['GET'])
|
||||
def get_algorithms():
|
||||
"""Get list of available algorithms."""
|
||||
|
||||
Reference in New Issue
Block a user