feat: standardize REST and RPC routes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user