chadtmiller.com/group-host
atmosphere group host
0
0
import type { Actions } from './$types';
import { act } from '#lib/data.ts';
/** An invitation, accepted or declined. */
export const actions: Actions = {
accept: async (event) => {
const group = String((await event.request.formData()).get('group'));
return act(event, 'org.atgrp.requestJoin', { group });
},
decline: async (event) => {
const group = String((await event.request.formData()).get('group'));
return act(event, 'org.atgrp.internal.declineInvite', { group });
}
};