From 8a31a12c3cd17464e8c860035e805088f3b12698 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Mon, 4 Mar 2024 06:12:38 -0700 Subject: [PATCH] Update subgen.py --- subgen/subgen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subgen/subgen.py b/subgen/subgen.py index 1f00632..26055ee 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -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. ***")