mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Rename Config.GetServerMode() to HttpServerMode, see #50
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
|
||||
// Start the REST API server using the configuration provided
|
||||
func Start(conf photoprism.Config) {
|
||||
if conf.GetServerMode() != "" {
|
||||
gin.SetMode(conf.GetServerMode())
|
||||
if conf.HttpServerMode() != "" {
|
||||
gin.SetMode(conf.HttpServerMode())
|
||||
} else if conf.Debug() == false {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user