service/library/httpengine/httpengine.go

16 lines
252 B
Go
Raw Normal View History

2023-12-21 22:17:40 +08:00
package httpengine
import (
"github.com/gin-gonic/gin"
"service/library/middleware"
)
func NewRouter() *gin.Engine {
gin.SetMode(gin.ReleaseMode)
router := gin.New()
router.Use(middleware.LoggerMiddleware(gin.LoggerConfig{}))
return router
}