Skip to content

Commit 7c1e59f

Browse files
authored
Merge pull request #276 from ACR1209/fix/fix-categories-failing-to-load-for-framework
Change it so the categories endpoint is consistent by removing slugify
2 parents e4bc4ea + 4c3efea commit 7c1e59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ app.get("/languages", (_req, res) => {
5151
// Get all categories for a given language
5252
app.get("/categories/:language", (req, res) => {
5353
const { language } = req.params;
54-
const file = path.join(dataDir, `consolidated/${slugify(language)}.json`);
54+
const file = path.join(dataDir, `consolidated/${language}.json`);
5555
const json = readJSON(file);
5656

5757
if (!json) {

0 commit comments

Comments
 (0)