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

关于RouteHandlerBuilder 配置的一点想法 #736

Open
ByZhouhang opened this issue Oct 15, 2024 · 0 comments
Open

关于RouteHandlerBuilder 配置的一点想法 #736

ByZhouhang opened this issue Oct 15, 2024 · 0 comments

Comments

@ByZhouhang
Copy link

ByZhouhang commented Oct 15, 2024

Description

比如我全局配置了: options.RouteHandlerBuilder= t=>t.RequireAuthorization().AddEndpointFilter();

但是要在继承了ServiceBase 的服务类里设置 minimal api 的分组,那么全局的配置都要重新配置一遍,否则就会覆盖,是否可以增加一个通用配置项,相当于基类配置,然后具体的服务增加的配置,在这个基类配置上增加,而不是覆盖?

.NET version

No response

MASA Framework version

No response

@ByZhouhang ByZhouhang changed the title 之前类似于Panda.DynamicWebApi ,这种不用写控制器层,支持在服务上标注 [Authorize] [TypeFilter(typeof(UnifiedApiResultFilter))] ,希望提供入口支持配置 关于RouteHandlerBuilder 配置的一点想法 Oct 15, 2024
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