We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ec5d6 commit 2733cbdCopy full SHA for 2733cbd
api/index.py
@@ -44,11 +44,10 @@ def public_access(f):
44
@wraps(f)
45
def decorated_function(*args, **kwargs):
46
public = os.environ.get("CODE_GRAPH_PUBLIC", "0") # Get public access setting
47
- if not public:
+ if public != "1":
48
return jsonify(message="Unauthorized"), 401
49
return f(*args, **kwargs)
50
return decorated_function
51
-
52
@app.route('/graph_entities', methods=['GET'])
53
@token_required # Apply token authentication decorator
54
def graph_entities():
0 commit comments