File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020)
2121from fastapi .datastructures import Address
2222from fastapi .middleware .cors import CORSMiddleware
23- from fastapi .responses import HTMLResponse , RedirectResponse , StreamingResponse
23+ from fastapi .responses import (
24+ FileResponse ,
25+ HTMLResponse ,
26+ RedirectResponse ,
27+ StreamingResponse ,
28+ )
2429from fastapi .security import OAuth2AuthorizationCodeBearer
2530from fastapi .templating import Jinja2Templates
2631from observability_utils .tracing import (
@@ -652,6 +657,11 @@ def root_landing(
652657 )
653658
654659
660+ @open_router .get ("/favicon" , include_in_schema = False )
661+ async def favicon ():
662+ return FileResponse ("templates/blueapi-logo.svg" )
663+
664+
655665@secure_router .post ("/run" , include_in_schema = True , tags = [Tag .TASK ])
656666@start_as_current_span (TRACER )
657667def run (
Original file line number Diff line number Diff line change 33 < head >
44 < meta charset ="UTF-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < link rel ="icon " type ="image/svg " href ="/favicon ">
67 < title > {{instrument}}-blueapi</ title >
78 < style >
89 dl {
You can’t perform that action at this time.
0 commit comments