Skip to content

Commit

Permalink
Associated Flask endpoints with their own dedicated Azure Function
Browse files Browse the repository at this point in the history
  • Loading branch information
hvalfangst committed Jan 14, 2024
1 parent 759b57a commit 4a010d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python version
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down
4 changes: 2 additions & 2 deletions function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import azure.functions as func
from flask import Flask, jsonify, request

from crypto_utils import aes_encrypt, aes_decrypt

app = Flask(__name__)
Expand Down Expand Up @@ -89,4 +88,5 @@ def decrypt():
return jsonify(response)


app = func.WsgiFunctionApp(app=app.wsgi_app, http_auth_level=func.AuthLevel.ANONYMOUS)
# Create an Azure Function which serves the above routes in our WSGI runtime (Gunicorn)
app = func.WsgiFunctionApp(app=app.wsgi_app, http_auth_level=func.AuthLevel.ANONYMOUS)

This file was deleted.

0 comments on commit 4a010d6

Please sign in to comment.