From 5001b8203d2d1139c301ac3903879c43253cb5fd Mon Sep 17 00:00:00 2001 From: metacryst Date: Tue, 10 Mar 2026 19:45:49 -0500 Subject: [PATCH] small --- server/index.js | 20 -------------------- ui/_/code/shared.css | 1 + 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/server/index.js b/server/index.js index a34f3a4..68ebd9f 100644 --- a/server/index.js +++ b/server/index.js @@ -38,7 +38,6 @@ class Server { /* Site */ router.post('/free', this.newUserSubmission) - router.get('/db/images/*', this.getUserImage) router.get('/api/orgdata/*', this.getOrgData) router.get('/api/mydata/*', this.getPersonalData) router.get('/*', this.get) @@ -135,25 +134,6 @@ class Server { } } - getUserImage = async (req, res) => { - function getFileByNumber(dir, number) { - const files = fs.readdirSync(dir); - const match = files.find(file => { - const base = path.parse(file).name; // filename without extension - return base === String(number); - }); - return match ? path.join(dir, match) : null; - } - - let filePath = path.join(this.DBPath, "images", path.basename(req.url)) - - if(filePath) { - res.sendFile(filePath) - } else { - return res.status(404).json({error: "Can't find image"}) - } - } - get = async (req, res) => { let url = req.url diff --git a/ui/_/code/shared.css b/ui/_/code/shared.css index 231d73e..5a1a65f 100644 --- a/ui/_/code/shared.css +++ b/ui/_/code/shared.css @@ -29,6 +29,7 @@ --accent: rgb(57, 26, 0); --accent2: rgb(57, 26, 0); --window: #ffc28b; + --divider: rgb(205 152 76); --house-src: /_/icons/house.svg; --nodes-src: /_/icons/nodes.svg;