mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-09 02:40:26 +08:00
18 lines
313 B
Go
18 lines
313 B
Go
package router
|
|
|
|
import (
|
|
"mayfly-go/internal/common/api"
|
|
"mayfly-go/pkg/req"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitCommonRouter(router *gin.RouterGroup) {
|
|
common := router.Group("common")
|
|
c := &api.Common{}
|
|
{
|
|
// 获取公钥
|
|
req.NewGet("public-key", c.RasPublicKey).DontNeedToken().Group(common)
|
|
}
|
|
}
|