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
commit61ee5245e2792e456232f88d4dbfdb7b4d0185c2 (patch)
tree725700388c5ecfc8b543050f6acfc05d43f6148d
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
downloadserver-61ee5245e2792e456232f88d4dbfdb7b4d0185c2.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;