This commit is contained in:
codey 2025-01-29 15:46:31 -05:00
parent c73180449f
commit e82d7b6727

View File

@ -50,7 +50,7 @@ class AI(FastAPI):
}
for endpoint, handler in self.endpoints.items():
app.add_api_route(f"/{endpoint}", handler, methods=["POST"] if not endpoint == "testy" else ["POST", "GET"])
app.add_api_route(f"/{endpoint}", handler, methods=["GET", "POST"])
async def respond_via_webhook(self, data: ValidHookSongRequest, originalRequest: Request):