This commit is contained in:
2025-12-31 12:18:18 +01:00
parent 515db80a79
commit b8e5d45762
3 changed files with 14 additions and 1 deletions
+7
View File
@@ -92,12 +92,19 @@ export default async function apiCrudHandler<
switch (method) {
case "GET":
result = await getResult(crudParams);
break;
case "POST":
result = await postResult(crudParams);
break;
case "PUT":
result = await putResult(crudParams);
break;
case "DELETE":
result = await deleteResult(crudParams);
break;
default:
break;
}
await params.postResultsFn?.({ ...crudParams, res: result });