migrate web to the new config scheme

This commit is contained in:
A.Unger
2021-11-05 13:33:03 +01:00
parent 11855bcaab
commit ca997e5bfc
9 changed files with 242 additions and 60 deletions
-2
View File
@@ -5,7 +5,6 @@ import (
"github.com/owncloud/ocis/ocis/pkg/register"
"github.com/owncloud/ocis/web/pkg/command"
svcconfig "github.com/owncloud/ocis/web/pkg/config"
"github.com/owncloud/ocis/web/pkg/flagset"
"github.com/urfave/cli/v2"
)
@@ -15,7 +14,6 @@ func WebCommand(cfg *config.Config) *cli.Command {
Name: "web",
Usage: "Start web server",
Category: "Extensions",
Flags: flagset.ServerWithConfig(cfg.Web),
Before: func(ctx *cli.Context) error {
return ParseConfig(ctx, cfg)
},