Skip to content

Enable nested exposure of Children and Parents

Compare
Choose a tag to compare
@twof twof released this 01 Oct 21:58
· 86 commits to master since this release

Siblings to come. Just working out some kinks

try router.crudRegister(for: Todo.self) { controller in
    try controller.crudRegister(at: "owner", forParent:  \.owner)
}
try router.crudRegister(for: User.self) { controller in
    try controller.crudRegister(forChildren: \.todos)
}
try router.crudRegister(for: Tag.self)