Skip to content

Commit 23bedac

Browse files
authored
missed a public (#428)
1 parent e5fbcd9 commit 23bedac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Hummingbird/Router/RouterMethods.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public protocol RouterMethods<Context> {
3838

3939
extension RouterMethods {
4040
/// Add path for async closure
41-
@discardableResult func on(
41+
@discardableResult public func on(
4242
_ path: String,
4343
method: HTTPRequest.Method,
4444
use closure: @Sendable @escaping (Request, Context) async throws -> some ResponseGenerator

Tests/HummingbirdTests/RouterTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import Atomics
16-
@testable import Hummingbird
16+
import Hummingbird
1717
import HummingbirdTesting
1818
import Logging
1919
import NIOCore

0 commit comments

Comments
 (0)