Skip to content

Commit

Permalink
i18n(zh-cn): Update endpoints.mdx (#11008)
Browse files Browse the repository at this point in the history
Co-authored-by: liruifengv <[email protected]>
  • Loading branch information
Nin3lee and liruifengv authored Mar 3, 2025
1 parent 9081778 commit e24e852
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/content/docs/zh-cn/guides/endpoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ export const ALL: APIRoute = ({ request }) => {
}
```

如果你的定义了一个 `GET` 函数,但却没有定义 `HEAD` 函数,Astro 将通过调用 `GET` 函数来自动处理 `HEAD` 请求并从响应中剥离 body 部分。

<RecipeLinks slugs={["zh-cn/recipes/captcha", "zh-cn/recipes/build-forms-api" ]}/>

### `request`
Expand Down

0 comments on commit e24e852

Please sign in to comment.