add new argument for allow origins and query without path and only uuid
This commit is contained in:
@@ -331,8 +331,7 @@ func (d *Datapoint) QueryDatapoints(depth uint, path string) (dps Datapoints) {
|
||||
|
||||
var dfs func(current *Datapoint, index int)
|
||||
dfs = func(current *Datapoint, index int) {
|
||||
|
||||
if index == len(parts) {
|
||||
if index == len(parts) || path == "" {
|
||||
dps = append(dps, current.GetAllDatapoints(depth)...)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user