You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Starts a with closure, where all arguments will be prefixed for the next concatenated addRoute() methods until an endWith() is called
447
-
*
448
-
* @deprecated This has been deprecated in favor of the <code>group()</code> function.
449
-
* @pattern The pattern to match against the URL.
450
-
* @handler The handler to execute if pattern matched.
451
-
* @action The action in a handler to execute if a pattern is matched. This can also be a structure based on the HTTP method(GET,POST,PUT,DELETE). ex: {GET:'show', PUT:'update', DELETE:'delete', POST:'save'}
452
-
* @packageResolverExempt If this is set to true, then the interceptor will not try to do handler package resolving. Else a package will always be resolved. Only works if :handler is in a pattern
453
-
* @matchVariables A string of name-value pair variables to add to the request collection when this pattern matches. This is a comma delimited list. Ex: spaceFound=true,missingAction=onTest
454
-
* @view The view to dispatch if pattern matches. No event will be fired, so handler,action will be ignored.
455
-
* @viewNoLayout If view is chosen, then you can choose to override and not display a layout with the view. Else the view renders in the assigned layout.
456
-
* @valuePairTranslation Activate convention name value pair translations or not. Turned on by default
457
-
* @constraints A structure of regex constraint overrides for variable placeholders. The key is the name of the variable, the value is the regex to try to match.
458
-
* @module The module to add this route to
459
-
* @moduleRouting Called internally by addModuleRoutes to add a module routing route.
460
-
* @namespace The namespace to add this route to
461
-
* @namespaceRouting Called internally by addNamespaceRoutes to add a namespaced routing route.
462
-
* @ssl Makes the route an SSL only route if true, else it can be anything. If an ssl only route is hit without ssl, the interceptor will redirect to it via ssl
463
-
* @append Whether the route should be appended or pre-pended to the array. By default we append to the end of the array
464
-
* @domain The domain to match, including wildcards
465
-
*
466
-
* @return Router
467
-
*/
468
-
functionwith(
469
-
stringpattern,
470
-
stringhandler,
471
-
anyaction,
472
-
booleanpackageResolverExempt,
473
-
stringmatchVariables,
474
-
stringview,
475
-
booleanviewNoLayout,
476
-
booleanvaluePairTranslation,
477
-
anyconstraints,
478
-
stringmodule,
479
-
stringmoduleRouting,
480
-
stringnamespace,
481
-
stringnamespaceRouting,
482
-
booleanssl,
483
-
booleanappend,
484
-
stringdomain
485
-
){
486
-
// set the withClosure
487
-
variables.withClosure.append( arguments );
488
-
returnthis;
489
-
}
490
-
491
-
/**
492
-
*
493
-
* End a with closure and returns itself
494
-
*
495
-
* @deprecated This has been deprecated in favor of the <code>group()</code> function.
496
-
*
497
-
* @return Router
498
-
*/
499
-
functionendWith(){
500
-
variables.withClosure= {};
501
-
returnthis;
502
-
}
503
-
504
444
/**
505
445
* process a with closure
506
446
*
@@ -535,7 +475,6 @@ component
535
475
}
536
476
537
477
/**
538
-
* This is the new approach to the <code>with</code> closure approach which has been marked as deprecated.
539
478
* You can pass any route option via the <code>options</code> structure and those values will be prefixed against
540
479
* any routing values done within the <code>body</code> closure.
541
480
*
@@ -771,7 +710,6 @@ component
771
710
* @handler The handler to execute if pattern matched.
772
711
* @action The action in a handler to execute if a pattern is matched. This can also be a structure based on the HTTP method(GET,POST,PUT,DELETE). ex: {GET:'show', PUT:'update', DELETE:'delete', POST:'save'}
773
712
* @packageResolverExempt If this is set to true, then the interceptor will not try to do handler package resolving. Else a package will always be resolved. Only works if :handler is in a pattern
774
-
* @matchVariables DEPRECATED: Use RC or PRC structs instead. A string of name-value pair variables to add to the request collection when this pattern matches. This is a comma delimited list. Ex: spaceFound=true,missingAction=onTest
775
713
* @view The view to dispatch if pattern matches. No event will be fired, so handler,action will be ignored.
776
714
* @viewNoLayout If view is chosen, then you can choose to override and not display a layout with the view. Else the view renders in the assigned layout.
777
715
* @valuePairTranslation Activate convention name value pair translations or not. Turned on by default
0 commit comments