Skip to content

Commit 4c3efea

Browse files
committed
Change it so the categories endpoint is consistent by removing slugify
1 parent e4bc4ea commit 4c3efea

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)