Make cors messages respect the debug flag (#25)
This commit is contained in:
parent
b0cd264c71
commit
ba695134ce
2
main.go
2
main.go
@ -61,8 +61,10 @@ func startHTTPAPI() {
|
|||||||
OptionsPassthrough: false,
|
OptionsPassthrough: false,
|
||||||
Debug: Config.General.Debug,
|
Debug: Config.General.Debug,
|
||||||
})
|
})
|
||||||
|
if Config.General.Debug {
|
||||||
// Logwriter for saner log output
|
// Logwriter for saner log output
|
||||||
c.Log = stdlog.New(logwriter, "", 0)
|
c.Log = stdlog.New(logwriter, "", 0)
|
||||||
|
}
|
||||||
api.POST("/register", webRegisterPost)
|
api.POST("/register", webRegisterPost)
|
||||||
api.POST("/update", Auth(webUpdatePost))
|
api.POST("/update", Auth(webUpdatePost))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user