Added 'created' attribute to files and pages

This commit is contained in:
Zef Hemel
2023-11-03 09:38:04 +01:00
parent 3f1aa45b5d
commit 509683c537
16 changed files with 39 additions and 2 deletions
+2
View File
@@ -25,6 +25,7 @@ async function responseToFileMeta(
: 0,
contentType: r.headers.get("Content-type")!,
perm,
created: +(r.headers.get("X-Created") || "0"),
lastModified: +(r.headers.get("X-Last-Modified") || "0"),
};
}
@@ -147,6 +148,7 @@ function errorResult(
meta: {
name,
contentType: "text/markdown",
created: 0,
lastModified: 0,
size: 0,
perm: "ro",