mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
22 lines
376 B
Go
22 lines
376 B
Go
package router
|
|
|
|
import (
|
|
"mayfly-go/internal/common/api"
|
|
"mayfly-go/pkg/ctx"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitCommonRouter(router *gin.RouterGroup) {
|
|
common := router.Group("common")
|
|
c := &api.Common{}
|
|
{
|
|
// 获取公钥
|
|
common.GET("public-key", func(g *gin.Context) {
|
|
ctx.NewReqCtxWithGin(g).
|
|
WithNeedToken(false).
|
|
Handle(c.RasPublicKey)
|
|
})
|
|
}
|
|
}
|