> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.

# lambda/\*.ts

开启 BFF 后，`lambda/` 目录下的文件会按照约定被注册为 BFF 的路由。

:::note
文件支持使用 `js` 或 `ts` 语言，但必须使用 `esm` 语法导出函数。
:::

详细内容可以参考 [BFF 函数路由](/zh/guides/advanced-features/bff/function.md#函数路由)。
