Make initializer public

This commit is contained in:
woxtu 2018-03-16 03:16:12 +09:00
parent 7eaa1fdd67
commit 8a44f04acc
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ import Foundation
open class Router<T> { open class Router<T> {
private var routes = [AnyRoute<T>]() private var routes = [AnyRoute<T>]()
public init() {
}
open func append<R>(route: R) where R : Route, R.Response == T { open func append<R>(route: R) where R : Route, R.Response == T {
self.routes.append(AnyRoute(route)) self.routes.append(AnyRoute(route))
} }