Update subgen.py

This commit is contained in:
McCloudS
2024-03-04 06:12:38 -07:00
committed by GitHub
parent 81ac38ec4e
commit 8a31a12c3c

View File

@@ -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. ***")