aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/actions.ts
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2023-12-11 10:26:13 -0500
committerSebastien Castiel <sebastien@castiel.me>2023-12-11 10:26:13 -0500
commit69fa008ea4e1a167e6076a69869388bf012d24b1 (patch)
tree673fe0d20df27c59292bec8df38cff1bffd41947 /src/app/groups/actions.ts
parentc504a773384bdaeddf6080ce749ecd39e12b24e5 (diff)
Tiny adjustments
Diffstat (limited to 'src/app/groups/actions.ts')
-rw-r--r--src/app/groups/actions.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/groups/actions.ts b/src/app/groups/actions.ts
new file mode 100644
index 0000000..2d07004
--- /dev/null
+++ b/src/app/groups/actions.ts
@@ -0,0 +1,7 @@
+'use server'
+import { getGroups } from "@/lib/api"
+
+export async function getGroupsAction(groupIds: string[]) {
+ 'use server'
+ return getGroups(groupIds)
+}