feat: no log
parent
2c68c8cddb
commit
82cce14ef8
|
@ -28,9 +28,10 @@ func New(name string) *Service {
|
||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
}
|
}
|
||||||
srv := &Service{
|
srv := &Service{
|
||||||
Name: name,
|
Name: name,
|
||||||
Server: gin.New(),
|
Server: gin.New(),
|
||||||
Addr: fmt.Sprintf("%s:%s", viper.GetString("server.host"), viper.GetString("server.port")),
|
SkipLog: DefaultSkipLog,
|
||||||
|
Addr: fmt.Sprintf("%s:%s", viper.GetString("server.host"), viper.GetString("server.port")),
|
||||||
}
|
}
|
||||||
srv.Server.Use(srv.Default)
|
srv.Server.Use(srv.Default)
|
||||||
srv.API = srv.Server.Group("/api")
|
srv.API = srv.Server.Group("/api")
|
||||||
|
|
Loading…
Reference in New Issue