Skip to content

Conversation

@dongjiang1989
Copy link
Member

No description provided.

@CLAassistant
Copy link

CLAassistant commented Jan 27, 2026

CLA assistant check
All committers have signed the CLA.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces Swagger UI for API documentation, making it available only in non-release modes. This is accomplished by adding swaggo/gin-swagger and related dependencies, and then conditionally configuring the /swagger/*any route within pkg/routers/router.go. The implementation correctly uses gin.Mode() to prevent exposing API documentation in production environments, which is a good security practice. The changes are straightforward and enhance the developer experience by providing interactive API documentation during development and testing.

Signed-off-by: dongjaing1989 <dongjiang1989@126.com>
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
@dongjiang1989 dongjiang1989 merged commit 7d2dd18 into master Jan 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants