Skip to content

Commit 06798dd

Browse files
committed
fixing removals
1 parent cecae3b commit 06798dd

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

test-harness/config/Router.cfc

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff 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 ){

0 commit comments

Comments
 (0)