File tree Expand file tree Collapse file tree 1 file changed +11
-20
lines changed Expand file tree Collapse file tree 1 file changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -109,26 +109,17 @@ component {
109109 // addNamespace( pattern="/luis", namespace="luis");
110110
111111 // Sample namespace
112- with ( namespace = " luis" )
113- .addRoute (
114- pattern = " contactus" ,
115- view = " simpleview"
116- )
117- .addRoute (
118- pattern = " contactus2" ,
119- view = " simpleview" ,
120- viewnoLayout = true
121- )
122- .endWith ();
123-
124- // Test Simple With
125- with (
126- pattern = " /test" ,
127- handler = " ehGeneral" ,
128- action = " dspHello"
129- ).addRoute ( pattern = " /:id-numeric{2}/:num-numeric/:name/:month{3}?" )
130- .addRoute ( pattern = " /:id/:name{4}?" )
131- .endWith ();
112+ group ( { namespace : " luis" }, ( options ) = > {
113+ route ( pattern : " contactus" ).toView ( view : " simpleview" );
114+ route ( pattern : " contactus2" ).toView ( view : " simpleview" , noLayout : true );
115+ } );
116+
117+ group (
118+ { pattern : " /test2" , handler : " ehGeneral" , action : " dspHello" },
119+ ( options ) = > {
120+ route ( " /:id-numeric{2}/:num-numeric/:name/:month{3}?" );
121+ route ( " /:id/:name{4}?" )
122+ } );
132123
133124 // awn sync with contact manager
134125 group ( { pattern : " /runAWNsync" , handler : " utilities.AWNsync" }, function ( options ){
You can’t perform that action at this time.
0 commit comments