feat: add fields to search results
This commit is contained in:
parent
f8dfbf7eee
commit
ae93bd4044
@ -15,6 +15,8 @@ var searchHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *dat
|
|||||||
response = append(response, map[string]interface{}{
|
response = append(response, map[string]interface{}{
|
||||||
"dir": f.IsDir(),
|
"dir": f.IsDir(),
|
||||||
"path": path,
|
"path": path,
|
||||||
|
"modified": f.ModTime(),
|
||||||
|
"size": f.Size(),
|
||||||
})
|
})
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user