diff --git a/spotbot.py b/spotbot.py index 066bfa0..7c1a5c8 100644 --- a/spotbot.py +++ b/spotbot.py @@ -2,6 +2,10 @@ import requests import os +app = func.FunctionApp() + +@app.function_name(name="SpotBotTrigger") +@app.route(route="hello", auth_level=func.AuthLevel.ANONYMOUS, methods=["POST"]) def main(req: func.HttpRequest) -> func.HttpResponse: content = req.get_json() target_url = os.getenv('TARGET_URL')