From 3a118841a00e0bc561c2ac6cb45ceb1764dbd62c Mon Sep 17 00:00:00 2001 From: uurgothat Date: Sun, 17 Oct 2021 21:51:19 +0300 Subject: oauth2 route draft to return an empty array --- api/src/routes/oauth2/tokens.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 api/src/routes/oauth2/tokens.ts (limited to 'api/src') diff --git a/api/src/routes/oauth2/tokens.ts b/api/src/routes/oauth2/tokens.ts new file mode 100644 index 00000000..2bea4af7 --- /dev/null +++ b/api/src/routes/oauth2/tokens.ts @@ -0,0 +1,12 @@ +//TODO: this is a template for a generic route + +import { Router, Request, Response } from "express"; +import { route } from "@fosscord/api"; +const router = Router(); + +router.get("/",route({}), async (req: Request, res: Response) => { + //TODO + res.json([]); +}); + +export default router; -- cgit 1.5.1