Skip to content

Commit

Permalink
Develop (#6)
Browse files Browse the repository at this point in the history
* add api key (#3)

* some adjustment (#5)
  • Loading branch information
iyoubee authored Jun 9, 2024
1 parent bfaebf3 commit 55a8d23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GCE
name: Build and Push to Artifact Registry

env:
APP_NAME: ulascan-ml
Expand Down
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
def require_api_key(f):
@wraps(f)
def decorated_function(*args, **kwargs):
key = request.headers.get('x-api-key')
key = request.headers.get('api-key')
if key and key == API_KEY:
return f(*args, **kwargs)
else:
Expand Down

0 comments on commit 55a8d23

Please sign in to comment.