This commit is contained in:
@@ -8,7 +8,7 @@ import org.springdoc.core.models.GroupedOpenApi;
|
||||
|
||||
/**
|
||||
* 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
|
||||
public class OpenApiConfig {
|
||||
@@ -18,7 +18,22 @@ public class OpenApiConfig {
|
||||
return GroupedOpenApi.builder()
|
||||
.group("public")
|
||||
.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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user