소스 검색

providing route to logo_square.png for avatar

Rodja Trappe 2 년 전
부모
커밋
2213d4ba25
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      main.py

+ 5 - 0
main.py

@@ -36,6 +36,11 @@ def logo():
     return FileResponse(svg.PATH / 'logo.png', media_type='image/png')
     return FileResponse(svg.PATH / 'logo.png', media_type='image/png')
 
 
 
 
+@app.get('/logo_square.png')
+def logo():
+    return FileResponse(svg.PATH / 'logo_square.png', media_type='image/png')
+
+
 # NOTE in our global fly.io deployment we need to make sure that the websocket connects back to the same instance
 # NOTE in our global fly.io deployment we need to make sure that the websocket connects back to the same instance
 fly_instance_id = os.environ.get('FLY_ALLOC_ID', '').split('-')[0]
 fly_instance_id = os.environ.get('FLY_ALLOC_ID', '').split('-')[0]
 if fly_instance_id:
 if fly_instance_id: