finished implementing readable mode api side

This commit is contained in:
daniel31x13
2023-10-30 00:30:45 -04:00
parent de20fb7bc1
commit c9c62b615b
10 changed files with 120 additions and 28 deletions
+4
View File
@@ -58,6 +58,8 @@ export default async function readFile(filePath: string) {
contentType = "application/pdf";
} else if (filePath.endsWith(".png")) {
contentType = "image/png";
} else if (filePath.endsWith("_readability.txt")) {
contentType = "text/plain";
} else {
// if (filePath.endsWith(".jpg"))
contentType = "image/jpeg";
@@ -83,6 +85,8 @@ export default async function readFile(filePath: string) {
contentType = "application/pdf";
} else if (filePath.endsWith(".png")) {
contentType = "image/png";
} else if (filePath.endsWith("_readability.txt")) {
contentType = "text/plain";
} else {
// if (filePath.endsWith(".jpg"))
contentType = "image/jpeg";