Skip to content

Commit ded511d

Browse files
Added missing configurable group(host:) counterpart
1 parent 11bc313 commit ded511d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/HostRouter/HostRoutesGroup.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ extension TopLevelHostRoutesBuilder {
3232
public func grouped(host: some StringProtocol) -> some HostRoutesBuilder {
3333
HostRoutesGroup(root: self, port: nil, domainPath: host.reversedDomainComponents)
3434
}
35+
36+
public func group(host: some StringProtocol, configure: (HostRoutesBuilder) throws -> ()) rethrows {
37+
try configure(HostRoutesGroup(root: self, port: nil, domainPath: host.reversedDomainComponents))
38+
}
3539
}
3640

3741
extension HostRoutesBuilder {

0 commit comments

Comments
 (0)