major claude changes
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
import logging
|
||||
from flask import jsonify, Response, url_for
|
||||
from app import app
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@app.route("/favicon.ico")
|
||||
def favicon():
|
||||
logger.info("GET /favicon.ico - Serving favicon")
|
||||
return url_for('static', filename='data:,')
|
||||
|
||||
|
||||
@app.route('/robots.txt')
|
||||
@app.route('/sitemap.xml')
|
||||
def static_from_root():
|
||||
logger.info("GET /robots.txt or /sitemap.xml - Serving robots/sitemap")
|
||||
def disallow(string): return 'Disallow: {0}'.format(string)
|
||||
return Response("User-agent: *\n{0}\n".format("\n".join([
|
||||
disallow('/bin/*'),
|
||||
@@ -19,5 +24,5 @@ def static_from_root():
|
||||
@app.route('/index', methods=['GET'])
|
||||
@app.route('/', methods=['GET'])
|
||||
def index():
|
||||
logger.info("GET / or /index - API health check")
|
||||
return jsonify({"success": "Api is online"}), 200
|
||||
|
||||
|
||||
Reference in New Issue
Block a user