Skip to content

Commit

Permalink
trying to functionize it
Browse files Browse the repository at this point in the history
  • Loading branch information
tblanarik committed Sep 9, 2024
1 parent 0ec4df7 commit d0e54f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spotbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d0e54f2

Please sign in to comment.