unlist most endpoints

This commit is contained in:
2025-01-29 15:48:47 -05:00
parent e82d7b6727
commit ca02c9a731
6 changed files with 12 additions and 6 deletions

View File

@@ -42,7 +42,8 @@ class XC(FastAPI):
app.add_api_websocket_route(f"/{endpoint}/", handler)
for endpoint, handler in self.endpoints.items():
app.add_api_route(f"/{endpoint}", handler, methods=["POST"])
app.add_api_route(f"/{endpoint}", handler, methods=["POST"],
include_in_schema=False)
# async def put_ws_handler(self, ws: WebSocket):
# await ws.accept()