我正在使用 apipie gem 作为 api 文档。在我的 api 文件夹下,有一个版本**(api/v1)
当我访问http://localhost:3000/apipie 时,它会向我显示文档,但是当单击 api 文档 url 时,即POST /api/chats
它重定向到 http://localhost:3000/apipie/public/chats/create.en.html
它显示错误
Oops!! Method create.en not found for resource chats.
但是当我手动删除 .en 表单 url 时,它会显示正确的 api 文档。即http://localhost:3000/apipie/public/chats/create.html。
我很困惑为什么 api doc 重定向到.en.html以及如何避免添加.enapi doc url。