3
0

Describe settings/current endpoint

This commit is contained in:
Denis Arh
2020-04-19 10:16:14 +02:00
parent 47bb9ab45a
commit 8c93135124
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -47,6 +47,9 @@ func (ctrl *Settings) Get(ctx context.Context, r *request.SettingsGet) (interfac
}
}
// Current settings, structured
//
// This is available to all authenticated users
func (ctrl *Settings) Current(ctx context.Context, r *request.SettingsCurrent) (interface{}, error) {
return service.CurrentSettings, nil
}
+5
View File
@@ -47,6 +47,11 @@ func (ctrl *Settings) Get(ctx context.Context, r *request.SettingsGet) (interfac
}
}
// Current settings, structured
//
// This is available to all authenticated users
//
// @todo selectively apply subset of user's own settings (like ui.*)
func (ctrl *Settings) Current(ctx context.Context, r *request.SettingsCurrent) (interface{}, error) {
return service.CurrentSettings, nil
}
+5
View File
@@ -47,6 +47,11 @@ func (ctrl *Settings) Get(ctx context.Context, r *request.SettingsGet) (interfac
}
}
// Current settings, structured
//
// This is available to all authenticated users
//
// @todo selectively apply subset of user's own settings (like ui.one.panes.*)
func (ctrl *Settings) Current(ctx context.Context, r *request.SettingsCurrent) (interface{}, error) {
return service.CurrentSettings, nil
}