From fabc504e06d39844e811f27ec3a0b2f758b01038 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Wed, 7 Jun 2023 22:32:34 +0200 Subject: [PATCH] feat: Added get all teams --- webv2/server/api/teams/index.get.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 webv2/server/api/teams/index.get.ts diff --git a/webv2/server/api/teams/index.get.ts b/webv2/server/api/teams/index.get.ts new file mode 100644 index 0000000..1fdd704 --- /dev/null +++ b/webv2/server/api/teams/index.get.ts @@ -0,0 +1,3 @@ +export default defineEventHandler(async () => { + return await TeamModel.find() +})