This commit is contained in:
ryan
2026-06-22 11:32:24 +08:00
parent 16b02fd3f1
commit 3d15c65afd
6 changed files with 9 additions and 45 deletions
+2 -10
View File
@@ -4,15 +4,7 @@
// Package v1 contains router registrations for API V1
package v1
import (
"github.com/Rain-kl/Wavelet/internal/apps/custom"
"github.com/gin-gonic/gin"
)
// RegisterCustomRoutes registers custom business routes to keep routing clean and stable.
func RegisterCustomRoutes(apiV1Router *gin.RouterGroup) {
customRouter := apiV1Router.Group("/custom")
{
customRouter.GET("/hello", custom.Hello)
}
func RegisterCustomRoutes() {
}
+1 -1
View File
@@ -22,5 +22,5 @@ func RegisterV1Routes(apiV1Router *gin.RouterGroup, apiGroup *gin.RouterGroup) {
ofrouter.RegisterRoutes(apiV1Router)
// 4. Custom business routes (example only)
RegisterCustomRoutes(apiV1Router)
RegisterCustomRoutes()
}