blob: 24f2c2f0d4de6b691b28eba336f1f4178c5d61d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import odooApi from '~/common/libs/odooApi';
export const getPageContent = async ({ path }: { path: string }) => {
const params = new URLSearchParams({
url_path: path,
});
const pageContent = await odooApi(
'GET',
`/api/v1/page-content?${params.toString()}`
);
return pageContent;
};
|