This commit is contained in:
@@ -8,7 +8,7 @@ import org.springdoc.core.models.GroupedOpenApi;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* OpenAPI / Swagger configuration for the public API only.
|
* OpenAPI / Swagger configuration for the public API only.
|
||||||
* Admin endpoints (/api/admin/**) are excluded from the documentation.
|
* Admin and selected internal/token endpoints are excluded from the documentation.
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
public class OpenApiConfig {
|
public class OpenApiConfig {
|
||||||
@@ -18,7 +18,22 @@ public class OpenApiConfig {
|
|||||||
return GroupedOpenApi.builder()
|
return GroupedOpenApi.builder()
|
||||||
.group("public")
|
.group("public")
|
||||||
.pathsToMatch("/**")
|
.pathsToMatch("/**")
|
||||||
.pathsToExclude("/api/admin/**")
|
.pathsToExclude(
|
||||||
|
"/api/admin/**",
|
||||||
|
"/api/users/deposit",
|
||||||
|
"/api/telegram/webhook/**",
|
||||||
|
"/api/tasks/daily-bonus",
|
||||||
|
"/api/tasks/daily-bonus/recent-claims",
|
||||||
|
"/api/payouts/create",
|
||||||
|
"/api/payouts/cancel",
|
||||||
|
"/api/notify_broadcast/**",
|
||||||
|
"/api/deposit_webhook/**",
|
||||||
|
"/api/auth/logout",
|
||||||
|
"/ping",
|
||||||
|
"/api/promotions",
|
||||||
|
"/api/promotions/**",
|
||||||
|
"/api/check_user/**"
|
||||||
|
)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user