1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 21:29:42 +02:00

fix db setup mode

This commit is contained in:
Elliott Stoneham 2016-07-22 16:22:06 +01:00
parent 3445994160
commit 1be2000bb7

View file

@ -58,7 +58,7 @@ func Serve(ready chan struct{}) {
case web.SiteModeOffline: case web.SiteModeOffline:
log.Info("Serving OFFLINE web app") log.Info("Serving OFFLINE web app")
case web.SiteModeSetup: case web.SiteModeSetup:
Add(RoutePrefixPrivate, "/setup", []string{"POST", "OPTIONS"}, nil, database.Create) Add(RoutePrefixPrivate, "setup", []string{"POST", "OPTIONS"}, nil, database.Create)
log.Info("Serving SETUP web app") log.Info("Serving SETUP web app")
case web.SiteModeBadDB: case web.SiteModeBadDB:
log.Info("Serving BAD DATABASE web app") log.Info("Serving BAD DATABASE web app")