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 | afff55cb59d29eb7d224dde4e3d7f75643475472 (patch) | |
tree | eaaf382561aa69c8417dbe5ac3f3999df9fea78f | |
parent | Merge branch 'master' of https://github.com/fosscord/fosscord-server (diff) | |
download | server-afff55cb59d29eb7d224dde4e3d7f75643475472.tar.xz |
added template for future 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; |