This commit is contained in:
2025-12-22 09:47:10 -03:00
parent f35253a8d4
commit a524666837
4 changed files with 19 additions and 5 deletions

View File

@@ -113,13 +113,14 @@ export async function loader({ params, context, request }: Route.LoaderArgs) {
}
export async function action({ params, request, context }: Route.ActionArgs) {
const { orgid: org_id } = params
const body = (await request.json()) as object
const r = await req({
url: `enrollments`,
headers: new Headers({ 'Content-Type': 'application/json' }),
method: HttpMethod.POST,
body: JSON.stringify({ org_id: params.orgid, ...body }),
body: JSON.stringify({ org_id, ...body }),
request,
context
})