mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-28 09:56:23 +02:00
set default keys for copilot, agents
This commit is contained in:
parent
ad4ea23d79
commit
3d13471723
4 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ def require_api_key(f):
|
|||
return jsonify({'error': 'Missing or invalid authorization header'}), 401
|
||||
|
||||
token = auth_header.split('Bearer ')[1]
|
||||
if token != os.environ.get('API_KEY'):
|
||||
if token != os.environ.get('API_KEY', 'test'):
|
||||
return jsonify({'error': 'Invalid API key'}), 403
|
||||
|
||||
return f(*args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue