[server] db support for file versions

This commit is contained in:
Abhishek Shroff
2025-06-02 13:13:13 +05:30
parent d5e8f67d4a
commit af143bcb76
8 changed files with 66 additions and 20 deletions
@@ -50,6 +50,7 @@ func ResourceFromFS(r fs.Resource) Resource {
ContentSHA256: r.ContentSHA256(),
InheritedPermissions: r.InheritedPermissions(),
Grants: r.Grants(),
Versions: r.Versions(),
Links: r.Links(),
}
}
@@ -28,6 +28,7 @@ type Resource struct {
ContentSHA256 string `json:"c_sha256"`
InheritedPermissions json.RawMessage `json:"inherited_permissions,omitempty"`
Grants json.RawMessage `json:"grants"`
Versions json.RawMessage `json:"versions"`
Links json.RawMessage `json:"publinks"`
}