Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] 提供 API Only 模式,去除 UiContext 等内容以便构建更加纯净的 REST API #900

Closed
gtn1024 opened this issue Nov 4, 2024 · 0 comments

Comments

@gtn1024
Copy link
Contributor

gtn1024 commented Nov 4, 2024

现在构建的所有接口全都带上了 UiContextUserContext,对于部分 REST 接口并无作用,在传输层面占用大量字节。

一种方案如下:

this.response.apiOnly = true
this.response.body = {
  // ...
}
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant