Пример #1
0
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
}
Пример #2
0
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)
}