add new argument for allow origins and query without path and only uuid

This commit is contained in:
Adrian Zürcher
2025-05-28 22:05:47 +02:00
parent c57c22f93a
commit 9605b50198
7 changed files with 93 additions and 76 deletions

View File

@@ -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
}