mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-03-06 10:00:39 +03:00
style: clean up code formatting and add missing newline in profiler.py
This commit is contained in:
@@ -48,9 +48,9 @@ async def lifespan(app: FastAPI):
|
||||
|
||||
|
||||
middleware = [
|
||||
Middleware(GZipMiddleware),
|
||||
Middleware(ProfilingMiddleware),
|
||||
]
|
||||
Middleware(GZipMiddleware),
|
||||
Middleware(ProfilingMiddleware),
|
||||
]
|
||||
|
||||
|
||||
def create_app() -> FastAPI:
|
||||
@@ -78,8 +78,6 @@ def create_app() -> FastAPI:
|
||||
# Register exception handlers
|
||||
register_exception_handlers(app)
|
||||
|
||||
|
||||
|
||||
@app.get("/index", response_class=HTMLResponse)
|
||||
def get_index(request: Request):
|
||||
return templates.TemplateResponse("index.html", {"request": request})
|
||||
|
||||
Reference in New Issue
Block a user