summary refs log tree commit diff
path: root/api/src/routes/discovery.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/discovery.ts')
-rw-r--r--api/src/routes/discovery.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/api/src/routes/discovery.ts b/api/src/routes/discovery.ts
deleted file mode 100644
index 1991400e..00000000
--- a/api/src/routes/discovery.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { Categories } from "@fosscord/util";
-import { Router, Response, Request } from "express";
-import { route } from "@fosscord/api";
-
-const router = Router();
-
-router.get("/categories", route({}), async (req: Request, res: Response) => {
-	// TODO:
-	// Get locale instead
-
-	const { locale, primary_only } = req.query;
-
-	const out = primary_only ? await Categories.find() : await Categories.find({ where: `"is_primary" = "true"` });
-
-	res.send(out);
-});
-
-export default router;