19 lines
No EOL
526 B
TypeScript
19 lines
No EOL
526 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 executeUserLoggedIndexData() {
|
|
|
|
const api = new API();
|
|
|
|
const response = await api.send({
|
|
'method': Methods.GET,
|
|
'endpoint': `administrativo/user/me`
|
|
});
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
export const UserLoggedIndexData = withClientErrorHandler(executeUserLoggedIndexData) |