         return SwiftRoutes.routesForScheme(globalScheme)
     }
     
-    public func addRoute(routePattern: NSURL, priority: Int, handler: RouteHandler) {
+    public func addRoute(routePattern: NSURL, priority: Int, handler: SwiftRoutesHandler) {
         let route = SwiftRoute(pattern: routePattern, priority: priority, handler: handler)
         routes.append(route)
     }


class SwiftRoute: Equatable {
    private let routePattern: NSURL
    private var handler: RouteHandler
    private var priority: Int
    
    init(pattern: NSURL, priority: Int, handler: RouteHandler) {
        self.routePattern = pattern
        self.priority = priority
        self.handler = handler


    private static var routesControllers = [SwiftRoutes]()

    private var handlers = Dictionary<String, SwiftRoutesHandler>()
    private var scheme: String
    private var routes = [SwiftRoute]()
    
