| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from starlette.responses import FileResponse |
||
| 2 | from starlette.routing import Route |
||
| 3 | |||
| 4 | from ..web import get_static_path |
||
| 5 | |||
| 6 | |||
| 7 | async def favicon(request): |
||
| 8 | path = get_static_path('images/logo-128.png').absolute().as_posix() |
||
| 9 | return FileResponse(path) |
||
| 10 | |||
| 11 | |||
| 12 | def favicon_route() -> Route: |
||
| 13 | return Route('/favicon.ico', endpoint=favicon, include_in_schema=False) |
||
| 14 |