A lot of code clean up! Also adding in Response everywhere...
This commit is contained in:
@@ -56,14 +56,14 @@ html = """
|
||||
|
||||
|
||||
@router.get("/ws_test")
|
||||
async def get():
|
||||
async def get(response: Response = Response):
|
||||
log.setLevel(logging.DEBUG)
|
||||
log.debug(locals())
|
||||
return HTMLResponse(html)
|
||||
|
||||
|
||||
@router.websocket("/ws")
|
||||
async def websocket_endpoint(websocket: WebSocket):
|
||||
async def websocket_endpoint(websocket: WebSocket, response: Response = Response):
|
||||
log.setLevel(logging.DEBUG)
|
||||
log.debug(locals())
|
||||
log.info('Root of ws. Waiting to accept a websocket and then the redis_connector')
|
||||
|
||||
Reference in New Issue
Block a user