mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind feature /area core /area plugin #### What this PR does / why we need it: Including CustomEndpoint beans while building plugin router functions. After that, we can define a CustomEndpoint in plugin like this: ```java @Component public class ApplicationEndpoint implements CustomEndpoint { @Override public RouterFunction<ServerResponse> endpoint() { return SpringdocRouteBuilder.route() .GET("/applications", request -> ServerResponse.ok().build(), builder -> { builder.operationId("ListV1Alpha1Applications"); }) .build(); } @Override public GroupVersion groupVersion() { return CustomEndpoint.super.groupVersion(); } } ``` #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3700 #### Does this PR introduce a user-facing change? ```release-note None ``` |
||
---|---|---|
.. | ||
src | ||
build.gradle |