summary refs log tree commit diff
path: root/api/src/routes/oauth2
diff options
context:
space:
mode:
authoruurgothat <cckhmck@gmail.com>2021-10-17 21:51:19 +0300
committeruurgothat <cckhmck@gmail.com>2021-10-17 21:51:19 +0300
commitbe164e7d2a5abe8443e78228ade21526cf263a5c (patch)
treeca2207c62b26f1cd111919c47ce1efdbee857835 /api/src/routes/oauth2
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
downloadserver-be164e7d2a5abe8443e78228ade21526cf263a5c.tar.xz
oauth2 route draft to return an empty array
Diffstat (limited to 'api/src/routes/oauth2')
-rw-r--r--api/src/routes/oauth2/tokens.ts12
1 files changed, 12 insertions, 0 deletions
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;