From d4a216ab2e4a97d866ddd464598d6c9f0debf341 Mon Sep 17 00:00:00 2001 From: uurgothat Date: Thu, 30 Sep 2021 17:57:51 +0300 Subject: Add misc routes --- api/src/routes/discovery.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 api/src/routes/discovery.ts (limited to 'api/src/routes/discovery.ts') diff --git a/api/src/routes/discovery.ts b/api/src/routes/discovery.ts new file mode 100644 index 00000000..9e6e0164 --- /dev/null +++ b/api/src/routes/discovery.ts @@ -0,0 +1,12 @@ +import { Router, Response, Request } from "express"; +import { route } from "@fosscord/api"; + +const router = Router(); + +router.get("/categories", route({}), (req: Request, res: Response) => { + // TODO: + //const { locale, primary_only } = req.query; + res.json([]).status(200); +}); + +export default router; -- cgit 1.5.1