Describe settings/current endpoint
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user