func (env *Environment) LoadAPI() error { logger.Debug("loading API") var err error if env.api, err = fs.NewAPI(env.fs.local.Path); err != nil { return err } return nil }
func (app *AdminApp) InitApiFs() { var err error app.fs.api, err = fs.NewAPI(app.fs.local.Path) checkAppFatal("Couldn't initialise api fs: %s", err) }