mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
89d6a089ae
commit
ba3d6938e1
|
|
@ -4,7 +4,9 @@ from fastapi.middleware.trustedhost import TrustedHostMiddleware
|
|||
app = FastAPI()
|
||||
|
||||
app.add_middleware(
|
||||
TrustedHostMiddleware, allowed_hosts=["example.com", "*.example.com"], www_redirect=True
|
||||
TrustedHostMiddleware,
|
||||
allowed_hosts=["example.com", "*.example.com"],
|
||||
www_redirect=True,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue