stoof
This commit is contained in:
parent
c73180449f
commit
e82d7b6727
@ -50,7 +50,7 @@ class AI(FastAPI):
|
|||||||
}
|
}
|
||||||
|
|
||||||
for endpoint, handler in self.endpoints.items():
|
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):
|
async def respond_via_webhook(self, data: ValidHookSongRequest, originalRequest: Request):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user