Move Host config value from Server -> App

This commit is contained in:
Matt Baer
2018-10-27 17:02:40 -04:00
parent ad3b813690
commit e6f1291189
5 changed files with 7 additions and 8 deletions

View File

@@ -12,8 +12,7 @@ import (
func initRoutes(handler *Handler, r *mux.Router, cfg *config.Config, db *datastore) {
isSingleUser := !cfg.App.MultiUser
// Write.as router
hostSubroute := cfg.Server.Host[strings.Index(cfg.Server.Host, "://")+3:]
hostSubroute := cfg.App.Host[strings.Index(cfg.App.Host, "://")+3:]
if isSingleUser {
hostSubroute = "{domain}"
} else {