From df89392b1777ee7c257a9b1d10ad10a52b971987 Mon Sep 17 00:00:00 2001 From: hvalfangst Date: Fri, 5 Jan 2024 10:47:13 +0100 Subject: [PATCH] Associated endpoints with their own dedicated Azure Function --- function_app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/function_app.py b/function_app.py index 1691326..8db8680 100644 --- a/function_app.py +++ b/function_app.py @@ -26,7 +26,6 @@ def index(): @app.route("/encrypt", methods=["POST"]) -@app.function_name("encrypt") def encrypt(): logger.info("Received request to encrypt endpoint.") @@ -59,7 +58,6 @@ def encrypt(): @app.route("/decrypt", methods=["POST"]) -@app.function_name("decrypt") def decrypt(): logger.info("Received request to decrypt endpoint.") @@ -91,4 +89,4 @@ def decrypt(): return jsonify(response) -app = func.WsgiFunctionApp(app=app.wsgi_app, http_auth_level=func.AuthLevel.ANONYMOUS) \ No newline at end of file +app = func.WsgiFunctionApp(app=app.wsgi_app, http_auth_level=func.AuthLevel.ANONYMOUS)