From 5ca69d462685929d2c418a0a393d9c13d3d24504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 15 Jul 2026 10:13:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20Update=20translations=20for=20zh?= =?UTF-8?q?-hant=20(update-outdated)=20(#15996)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] --- docs/zh-hant/docs/tutorial/frontend.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/zh-hant/docs/tutorial/frontend.md b/docs/zh-hant/docs/tutorial/frontend.md index 0c568b9f5..fbfd8b3c5 100644 --- a/docs/zh-hant/docs/tutorial/frontend.md +++ b/docs/zh-hant/docs/tutorial/frontend.md @@ -126,6 +126,12 @@ npm run build 應用程式中的任何一般*路徑操作*仍會優先,包括其他 router 中的路徑操作。 +## 依賴項與中介軟體 { #dependencies-and-middleware } + +前端回應會在一般的 **FastAPI** 應用程式內執行,因此 HTTP middleware 會套用到它們。 + +來自 app、`APIRouter` 和 `include_router()` 的 dependencies 也會套用到前端回應。這對使用 cookie authentication 或類似方式保護前端很有用。 + ## 僅限靜態建置輸出 { #static-build-output-only } `app.frontend()` 會提供你的前端建置已經產生的檔案。