add list and show to the Person entity

This commit is contained in:
2025-01-13 21:51:17 +01:00
parent fdb8284b51
commit 012db596e8
16 changed files with 357 additions and 75 deletions

View File

@@ -1,19 +1,10 @@
import { useQueryEngine } from "@core";
import { useQueryEngine } from './hooks';
export const dataProviderExtension = () => {
const { fetchCommon } = useQueryEngine();
const url = import.meta.env.VITE_SIMPLE_REST_URL;
return {
person: () =>
fetchCommon(
"http://localhost:8081/core/api/admin/person",
{
headers: new Headers({
Accept: "application/json",
'X-XSRF-TOKEN': 'c3aKjTfLsPSdmiMtTaj933RbsQMR6IWmf9C5ZImMh9pCmDGkEETougKpiZew-UcZe4XJ5xE4nDpwirWLR-SOXbm94-Im-QLB',
'Cookie': 'LAST_LOGIN_LOCATION=http://localhost:3000; SESSION=652f7c23-fe94-4727-a980-59052e75aab2; XSRF-TOKEN=c2b75b9c-cd46-48ec-9ab0-847901d8da3e',
}),
},
),
personList: (params: URLSearchParams) => fetchCommon(`${url}/person?${params}`),
};
};