colossal-harlequinC
Refine3y ago
5 replies
colossal-harlequin

How to define a custom api endpoint for a resource?

I have a resource
            {
              name: "suppliers",
              list: "/dashboard/suppliers",
              create: "/dashboard/suppliers/create",
              edit: "/dashboard/suppliers/edit/:id",
              show: "/dashboard/suppliers/show/:id",
              meta: {
                canDelete: true,
              },
            },

Which trying to GET data from
/api/v1/suppliers?_end=10&_start=0


How to change this path to
/api/v1/dictionaries/suppliers
Was this page helpful?