public access rest api
This commit is contained in:
parent
4e146d7ffb
commit
f4e9c06fed
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue