21 lines
No EOL
536 B
TypeScript
21 lines
No EOL
536 B
TypeScript
'use server'
|
|
|
|
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
|
import API from '@/shared/services/api/Api';
|
|
import { withClientErrorHandler } from '@/withClientErrorHandler/withClientErrorHandler';
|
|
|
|
async function executeUserSaveData(form: any) {
|
|
|
|
const api = new API();
|
|
|
|
const response = await api.send({
|
|
'method': Methods.POST,
|
|
'endpoint': `administrativo/user/`,
|
|
'body': form
|
|
});
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
export const UserSaveData = withClientErrorHandler(executeUserSaveData) |