From 4cb38a48098f0bce73cd6c7242cb6a4f81a5b4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 15 Jul 2026 10:10:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20Update=20translations=20for=20zh?= =?UTF-8?q?=20(update-outdated)=20(#16001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] --- docs/zh/docs/tutorial/frontend.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/zh/docs/tutorial/frontend.md b/docs/zh/docs/tutorial/frontend.md index 8b57bbe60..32169076e 100644 --- a/docs/zh/docs/tutorial/frontend.md +++ b/docs/zh/docs/tutorial/frontend.md @@ -126,6 +126,12 @@ npm run build 应用中的任何常规*路径操作*仍会优先,包括其他 router 中的路径操作。 +## 依赖项和中间件 { #dependencies-and-middleware } + +前端响应在普通 **FastAPI** 应用内部运行,因此 HTTP 中间件会应用于它们。 + +来自 app、`APIRouter` 和 `include_router()` 的依赖项也会应用于前端响应。这可用于通过 cookie 身份验证或类似方式保护前端。 + ## 仅限静态构建输出 { #static-build-output-only } `app.frontend()` 提供的是你的前端构建已经生成的文件。