summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-14 19:47:10 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-14 19:47:10 +0200
commite5ed599b483a91a058d4ccd46220dea8ef3fcee1 (patch)
tree379fca2e4292170ff87cefd7c13818f8a811828b /api/src
parent:sparkles: sticker db entities (diff)
downloadserver-e5ed599b483a91a058d4ccd46220dea8ef3fcee1.tar.xz
:art: restructure
Diffstat (limited to 'api/src')
-rw-r--r--api/src/routes/template.ts.disabled5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/src/routes/template.ts.disabled b/api/src/routes/template.ts.disabled

index ad785f10..fcc59ef4 100644 --- a/api/src/routes/template.ts.disabled +++ b/api/src/routes/template.ts.disabled
@@ -1,10 +1,11 @@ //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("/", async (req: Request, res: Response) => { - res.send({}); +router.get("/",route({}), async (req: Request, res: Response) => { + res.json({}); }); export default router;