feat: add fields to search results

This commit is contained in:
yucheng.chen 2022-03-30 16:17:29 +08:00
parent f8dfbf7eee
commit ae93bd4044

View File

@ -15,6 +15,8 @@ var searchHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *dat
response = append(response, map[string]interface{}{
"dir": f.IsDir(),
"path": path,
"modified": f.ModTime(),
"size": f.Size(),
})
return nil