@@ -274,33 +274,31 @@ + (instancetype)routesForScheme:(NSString *)scheme {
274
274
}
275
275
276
276
277
- + (void )addRoute : (NSString *)routePattern handler : (BOOL (^)(NSDictionary <NSString *, NSString * > *parameters))handlerBlock {
277
+ + (void )addRoute : (NSString *)routePattern handler : (BOOL (^)(NSDictionary <NSString *, id > *parameters))handlerBlock {
278
278
[[self globalRoutes ] addRoute: routePattern handler: handlerBlock];
279
279
}
280
280
281
- + (void )addRoutes : (NSArray <NSString *> *)routePatterns handler : (BOOL (^)(NSDictionary <NSString *, NSString * > *parameters))handlerBlock {
281
+ + (void )addRoutes : (NSArray <NSString *> *)routePatterns handler : (BOOL (^)(NSDictionary <NSString *, id > *parameters))handlerBlock {
282
282
for (NSString *routePattern in routePatterns) {
283
283
[self addRoute: routePattern handler: handlerBlock];
284
284
}
285
285
}
286
286
287
-
288
- + (void )addRoute : (NSString *)routePattern priority : (NSUInteger )priority handler : (BOOL (^)(NSDictionary <NSString *, NSString *> *parameters))handlerBlock {
287
+ + (void )addRoute : (NSString *)routePattern priority : (NSUInteger )priority handler : (BOOL (^)(NSDictionary <NSString *, id> *parameters))handlerBlock {
289
288
[[self globalRoutes ] addRoute: routePattern priority: priority handler: handlerBlock];
290
289
}
291
290
292
- - (void )addRoute : (NSString *)routePattern handler : (BOOL (^)(NSDictionary <NSString *, NSString * > *parameters))handlerBlock {
291
+ - (void )addRoute : (NSString *)routePattern handler : (BOOL (^)(NSDictionary <NSString *, id > *parameters))handlerBlock {
293
292
[self addRoute: routePattern priority: 0 handler: handlerBlock];
294
293
}
295
294
296
- - (void )addRoutes : (NSArray <NSString *> *)routePatterns handler : (BOOL (^)(NSDictionary <NSString *, NSString * > *parameters))handlerBlock {
295
+ - (void )addRoutes : (NSArray <NSString *> *)routePatterns handler : (BOOL (^)(NSDictionary <NSString *, id > *parameters))handlerBlock {
297
296
for (NSString *routePattern in routePatterns) {
298
297
[self addRoute: routePattern handler: handlerBlock];
299
298
}
300
299
}
301
300
302
-
303
- - (void )addRoute : (NSString *)routePattern priority : (NSUInteger )priority handler : (BOOL (^)(NSDictionary <NSString *, NSString *> *parameters))handlerBlock {
301
+ - (void )addRoute : (NSString *)routePattern priority : (NSUInteger )priority handler : (BOOL (^)(NSDictionary <NSString *, id> *parameters))handlerBlock {
304
302
// if there's a pair of parenthesis, process optionals, trim the parenthesis, put it on trimmedRoute
305
303
NSString *trimmedRoute = routePattern;
306
304
0 commit comments