public access rest api
This commit is contained in:
		
							parent
							
								
									bcc7a8d6b7
								
							
						
					
					
						commit
						441f2cb6c8
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		|  | @ -19,9 +19,6 @@ def ping(): | ||||||
| @app.route("/comments", methods=["GET"]) | @app.route("/comments", methods=["GET"]) | ||||||
| def query_comments(): | def query_comments(): | ||||||
|     comments = [] |     comments = [] | ||||||
|     token = request.args.get("token", "") |  | ||||||
|     if token != app.config.get("SITE_TOKEN"): |  | ||||||
|         abort(401) |  | ||||||
|     url = request.args.get("url", "") |     url = request.args.get("url", "") | ||||||
| 
 | 
 | ||||||
|     logger.info("retrieve comments for url %s" % url) |     logger.info("retrieve comments for url %s" % url) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Yax
						Yax