summary refs log tree commit diff
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-09-03 21:28:07 +0200
committerxnacly <matteogropp@protonmail.com>2021-09-03 21:28:07 +0200
commitafff55cb59d29eb7d224dde4e3d7f75643475472 (patch)
treeeaaf382561aa69c8417dbe5ac3f3999df9fea78f
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
downloadserver-afff55cb59d29eb7d224dde4e3d7f75643475472.tar.xz
added template for future routes
-rw-r--r--api/src/routes/template.ts.disabled10
1 files changed, 10 insertions, 0 deletions
diff --git a/api/src/routes/template.ts.disabled b/api/src/routes/template.ts.disabled
new file mode 100644
index 00000000..ad785f10
--- /dev/null
+++ b/api/src/routes/template.ts.disabled
@@ -0,0 +1,10 @@
+//TODO: this is a template for a generic route
+
+import { Router, Request, Response } from "express";
+const router = Router();
+
+router.get("/", async (req: Request, res: Response) => {
+	res.send({});
+});
+
+export default router;