⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
Bug fixed.
Danielb31304658009
diff --git a/api/server.js b/api/server.jsindex 4ea9730f..1d49df2b 100644--- a/api/server.js+++ b/api/server.js@@ -49,11 +49,14 @@ app.get("/screenshots/:id", async (req, res) => {});app.get("/pdfs/:id", async (req, res) => {- res.sendFile(pdfDirectory + "/" + sanitize(req.params.id), (err) => {- if (err) {- res.sendFile(__dirname + "/pages/404.html");+ res.sendFile(+ __dirname + "/" + pdfDirectory + "/" + sanitize(req.params.id),+ (err) => {+ if (err) {+ res.sendFile(__dirname + "/pages/404.html");+ }}- });+ );});app.post("/api", async (req, res) => {