4

有谁知道我应该如何使用 django-rest-framework 和 django-tenants ( https://github.com/django-tenants/django-tenants ) 构建的多租户 API 来管理 Nuxt 和 axios 配置?

租户子域可以访问此 API:tenant1.example.com/api、tenant2.example.com/api、...(在我的开发环境中:tenant1.localhost:8000/api、tenant2.localhost:8000/api、. ..)

在我的 Nuxt 应用程序中,我想使用 @nuxtjs/axios 和 @nuxtjs/auth-next。

→ 如何代理 axios API URL 以考虑 API 子域(tenant1.example.com/api,...)?

→ 如何配置身份验证端点(tenant1.example.com/api/login,...)?

谢谢你的帮助!

4

0 回答 0