Include source capabilities in source specs list
This commit is contained in:
parent
263ddddf0b
commit
af4637ff8b
|
@ -56,6 +56,7 @@ func getSourceSpecs(_ *config.Options, p httprouter.Params, body io.Reader) Resp
|
|||
|
||||
ret := map[string]sources.SourceInfos{}
|
||||
for k, src := range *srcs {
|
||||
src.Infos.Capabilities = sources.GetSourceCapabilities(src.Creator())
|
||||
ret[k] = src.Infos
|
||||
}
|
||||
|
||||
|
|
|
@ -46,6 +46,9 @@ type SourceInfos struct {
|
|||
|
||||
// Description is a brief description of what the source is.
|
||||
Description string `json:"description"`
|
||||
|
||||
// Capabilites is a list of special ability of the source (automatically filled).
|
||||
Capabilities []string `json:"capabilities,omitempty"`
|
||||
}
|
||||
|
||||
// ListDomainsSource are functions to declare when we can retrives a list of managable domains from the given Source.
|
||||
|
|
Loading…
Reference in New Issue
Block a user