Files
mayfly-go/server/internal/common/router/common.go

22 lines
368 B
Go
Raw Normal View History

package router
import (
"mayfly-go/internal/common/api"
2023-01-14 16:29:52 +08:00
"mayfly-go/pkg/req"
"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) {
2023-01-14 16:29:52 +08:00
req.NewCtxWithGin(g).
DontNeedToken().
Handle(c.RasPublicKey)
})
}
}