Make initializer public
This commit is contained in:
parent
7eaa1fdd67
commit
8a44f04acc
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue