hidden-sapphireH
Refine17mo ago
3 replies
hidden-sapphire

Change the url for a resource for get data from different API version

I had this code and I want to use the useTable hook and configure to get the resourse using a V2 version of the API
The result of this code is something like "http://api/v1/v2/entity/id"
   const { tableProps, setCurrent, setFilters, pageSize, setPageSize } = useTable({
        resource: `v2/entity/${id}`,
    });
Was this page helpful?