public access rest api

This commit is contained in:
Yax 2021-07-18 20:17:26 +02:00
parent bcc7a8d6b7
commit 441f2cb6c8

View file

@ -19,9 +19,6 @@ def ping():
@app.route("/comments", methods=["GET"])
def query_comments():
comments = []
token = request.args.get("token", "")
if token != app.config.get("SITE_TOKEN"):
abort(401)
url = request.args.get("url", "")
logger.info("retrieve comments for url %s" % url)