Skip to content

Commit

Permalink
Associated endpoints with their own dedicated Azure Function
Browse files Browse the repository at this point in the history
  • Loading branch information
hvalfangst committed Jan 5, 2024
1 parent 4319af7 commit df89392
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def index():


@app.route("/encrypt", methods=["POST"])
@app.function_name("encrypt")
def encrypt():
logger.info("Received request to encrypt endpoint.")

Expand Down Expand Up @@ -59,7 +58,6 @@ def encrypt():


@app.route("/decrypt", methods=["POST"])
@app.function_name("decrypt")
def decrypt():
logger.info("Received request to decrypt endpoint.")

Expand Down Expand Up @@ -91,4 +89,4 @@ def decrypt():
return jsonify(response)


app = func.WsgiFunctionApp(app=app.wsgi_app, http_auth_level=func.AuthLevel.ANONYMOUS)
app = func.WsgiFunctionApp(app=app.wsgi_app, http_auth_level=func.AuthLevel.ANONYMOUS)

0 comments on commit df89392

Please sign in to comment.