]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🌐 Update translations for zh-hant (update-outdated) (#15996)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 15 Jul 2026 08:13:02 +0000 (10:13 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2026 08:13:02 +0000 (10:13 +0200)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
docs/zh-hant/docs/tutorial/frontend.md

index 0c568b9f598bb4930258aba805c465f979c2492b..fbfd8b3c5547d2f922a025c623b81019a4edeb7b 100644 (file)
@@ -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()` 會提供你的前端建置已經產生的檔案。