|
Revision 2675, 1.1 kB
(checked in by lmajano, 4 years ago)
|
|
implicit structures to SES addRoute
|
| Line | |
|---|
| 1 | <cfset setEnabled(true)> |
|---|
| 2 | <cfset setDebugMode(true)> |
|---|
| 3 | <cfset setUniqueURLs(false)> |
|---|
| 4 | |
|---|
| 5 | <cfset setBaseURL("http://#cgi.http_host#/#getSetting('AppMapping')#/index.cfm")> |
|---|
| 6 | |
|---|
| 7 | <!--- REST services ---> |
|---|
| 8 | <cfset addRoute(pattern="rest",handler="Rest",action="{GET:'show', PUT:'update', DELETE:'delete', POST:'save'}")> |
|---|
| 9 | |
|---|
| 10 | <!--- CUSTOM COURSES GO HERE (they will be checked in order) ---> |
|---|
| 11 | <cfset addRoute(pattern="/test/:id-numeric{2}/:num-numeric/:name/:month{3}?",handler="ehGeneral",action="dspHello")> |
|---|
| 12 | <cfset addRoute(pattern="test/:id/:name{4}?",handler="ehGeneral",action="dspHello")> |
|---|
| 13 | |
|---|
| 14 | <!--- Views No Events ---> |
|---|
| 15 | <cfset addRoute(pattern="contactus",view="simpleView")> |
|---|
| 16 | <cfset addRoute(pattern="contactus2",view="simpleView",viewnoLayout=true)> |
|---|
| 17 | |
|---|
| 18 | <!--- Constraints ---> |
|---|
| 19 | <cfset addRoute(pattern="/const/:test",view="simpleView",constraints={test='(ATest)'})> |
|---|
| 20 | |
|---|
| 21 | <!--- STANDARD COLDBOX COURSES, DO NOT MODIFY UNLESS YOU DON'T LIKE THEM ---> |
|---|
| 22 | <cfset addRoute(pattern=":handler/:action?/:id-numeric?",matchVariables="isFound=true,testDate=#now()#")> |
|---|
| 23 | <!--- <cfset addRoute(":handler/:action?/:id?")> ---> |
|---|
| 24 | |
|---|