better pdf using headless chrome
This commit is contained in:
parent
16e207000f
commit
7f0934ac14
7 changed files with 143 additions and 26 deletions
|
|
@ -8,8 +8,10 @@ from fastapi_dynamic_response.dependencies import get_content_type
|
|||
from fastapi_dynamic_response.middleware import (
|
||||
Sitemap,
|
||||
catch_exceptions_middleware,
|
||||
log_request_state,
|
||||
respond_based_on_content_type,
|
||||
set_prefers,
|
||||
set_span_id,
|
||||
)
|
||||
from fastapi_dynamic_response.zpages.router import router as zpages_router
|
||||
|
||||
|
|
@ -24,6 +26,8 @@ app = FastAPI(
|
|||
debug=True,
|
||||
dependencies=[
|
||||
Depends(set_prefers),
|
||||
Depends(set_span_id),
|
||||
Depends(log_request_state),
|
||||
],
|
||||
)
|
||||
app.include_router(zpages_router)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue