浏览代码

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')
 
 
+@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
 fly_instance_id = os.environ.get('FLY_ALLOC_ID', '').split('-')[0]
 if fly_instance_id: