         self.scheme = scheme
     }
     
-    public class func addRoute(routePattern: NSURL, handler: RouteHandler) {
+    public class func addRoute(routePattern: NSURL, handler: SwiftRoutesHandler) {
         if routePattern.scheme.characters.count > 0 {
             SwiftRoutes.routesForScheme(routePattern.scheme).addRoute(routePattern, priority: 0, handler: handler)
         } else {

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


import UIKit

public typealias SwiftRoutesHandler = ((Dictionary<String, String>) -> Bool)

let globalScheme = "SwiftRoutesGlobalScheme"
let keyAbsoluteString = "absoluteString"
