feat: standardize REST and RPC routes

This commit is contained in:
2026-08-11 18:55:36 +08:00
parent 53e953c3fc
commit eed82bcf38
8 changed files with 89 additions and 22 deletions

View File

@@ -1,16 +1,17 @@
package routers
import (
"fmt"
"path"
"bsm/full/module/base/fts/internal/logic"
"github.com/gin-gonic/gin"
swaggerfiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger"
)
func Register(srvKey string, engine *gin.Engine) {
v1_key := fmt.Sprintf("/%s/%s", srvKey, "v1")
v1_key := path.Join("/rest", srvKey)
registerAnonymous(v1_key, engine)
registerUploader(v1_key, engine)
}