From 4c3efeae32d1b1b3f871fee4bea6dc3064a1fc2c Mon Sep 17 00:00:00 2001 From: ACR1209 Date: Sat, 31 May 2025 21:56:38 -0500 Subject: [PATCH] Change it so the categories endpoint is consistent by removing slugify --- backend/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/index.ts b/backend/index.ts index e0cce05d..40076489 100644 --- a/backend/index.ts +++ b/backend/index.ts @@ -51,7 +51,7 @@ app.get("/languages", (_req, res) => { // Get all categories for a given language app.get("/categories/:language", (req, res) => { const { language } = req.params; - const file = path.join(dataDir, `consolidated/${slugify(language)}.json`); + const file = path.join(dataDir, `consolidated/${language}.json`); const json = readJSON(file); if (!json) {