Skip to content

Commit 417fa85

Browse files
committed
Update docs, remove public form ThrowingContextTransform.init()
1 parent 2842c18 commit 417fa85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/HummingbirdRouter/ContextTransform.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public struct ContextTransform<Context: RouterRequestContext, HandlerContext: Ro
6363
}
6464

6565
/// Router middleware that transforms the ``Hummingbird/RequestContext`` and uses it with the contained
66-
/// Middleware chain. ``Used by RouteGroup/init(_:context:builder:)``
66+
/// Middleware chain. Used by ``HummingbirdRouter/RouteGroup/init(_:context:builder:)``
6767
public struct ThrowingContextTransform<Context: RouterRequestContext, HandlerContext: RouterRequestContext & ChildRequestContext, Handler: MiddlewareProtocol>: RouterMiddleware where Handler.Input == Request, Handler.Output == Response, Handler.Context == HandlerContext, HandlerContext.ParentContext == Context {
6868
public typealias Input = Request
6969
public typealias Output = Response
@@ -76,7 +76,7 @@ public struct ThrowingContextTransform<Context: RouterRequestContext, HandlerCon
7676
/// - Parameters:
7777
/// - context: RequestContext to convert to
7878
/// - builder: RouteGroup builder
79-
public init(
79+
init(
8080
to context: HandlerContext.Type,
8181
@MiddlewareFixedTypeBuilder<Request, Response, HandlerContext> builder: () -> Handler
8282
) {

0 commit comments

Comments
 (0)