@@ -11,6 +11,10 @@ import (
|
||||
)
|
||||
|
||||
func Start() {
|
||||
if !viper.GetBool("server.debug_mode") {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
}
|
||||
|
||||
r := gin.New()
|
||||
r.Use(gin.Recovery(), middleware.GinLogger())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user