diff options
author | xnacly <matteogropp@protonmail.com> | 2021-09-03 21:28:07 +0200 |
---|---|---|
committer | xnacly <matteogropp@protonmail.com> | 2021-09-03 21:28:07 +0200 |
commit | 61ee5245e2792e456232f88d4dbfdb7b4d0185c2 (patch) | |
tree | 725700388c5ecfc8b543050f6acfc05d43f6148d /api/src/routes | |
parent | Merge branch 'master' of https://github.com/fosscord/fosscord-server (diff) | |
download | server-61ee5245e2792e456232f88d4dbfdb7b4d0185c2.tar.xz |
added template for future routes
Diffstat (limited to 'api/src/routes')
-rw-r--r-- | api/src/routes/template.ts.disabled | 10 |
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; |