misc/breaking: remove trailing slashes from endpoints
This commit is contained in:
@@ -42,7 +42,7 @@ 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"])
|
||||
|
||||
# async def put_ws_handler(self, ws: WebSocket):
|
||||
# await ws.accept()
|
||||
@@ -50,7 +50,7 @@ class XC(FastAPI):
|
||||
|
||||
async def xc_handler(self, data: ValidXCRequest, request: Request):
|
||||
"""
|
||||
/xc/
|
||||
/xc
|
||||
Handle XC Commands
|
||||
"""
|
||||
key = data.key
|
||||
|
||||
Reference in New Issue
Block a user