Skip to content

Commit

Permalink
Update subgen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Mar 4, 2024
1 parent 81ac38e commit 8a31a12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ def appendLine(result):
def handle_get_request(request: Request):
return "You accessed this request incorrectly via a GET request. See https://github.com/McCloudS/subgen for proper configuration"

@app.get("/status")
def status():
return {"version" : "Subgen commit: COMMIT_VERSION on: $COMMIT_DATE"}

@app.post("/webhook")
async def print_warning():
print("*** This is the legacy webhook. You need to update to webhook urls to end in plex, tautulli, emby, or jellyfin instead of webhook. ***")
Expand Down

0 comments on commit 8a31a12

Please sign in to comment.