migrate graph-explorer to the new config scheme

This commit is contained in:
A.Unger
2021-11-05 11:31:35 +01:00
parent ba1635165b
commit 91c766210c
8 changed files with 177 additions and 180 deletions

View File

@@ -24,8 +24,6 @@ func Server(cfg *config.Config) *cli.Command {
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
}
// When running on single binary mode the before hook from the root command won't get called. We manually
// call this before hook from ocis command, so the configuration can be loaded.
if err := ParseConfig(ctx, cfg); err != nil {
return err
}