16 lines
252 B
Go
16 lines
252 B
Go
|
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
|
||
|
}
|