Sub Resources
How can i create sub resources? I have teams and tasks resources. I want to relate the tasks with teams. How can i do that?
create, , , ) as paths rather than components in the prop of the component. This allows you to define custom routes for individual actions and use your routerβs full potential without being restricted to the automatically created routes.Note: you can ask me a follow up question by @ mentioning me again listeditshowcloneresources<Refine>tasksteams:teamIdmetaresources={[
{
name: "teams",
list: "/teams",
show: "/teams/:id",
},
{
name: "tasks",
list: "/teams/:teamId/tasks",
show: "/teams/:teamId/tasks/:id",
edit: "/teams/:teamId/tasks/:id/edit",
create: "/teams/:teamId/tasks/create",
}
]}