//Using cf9/railo implicit structs ROCK!
addRoute(pattern="/en/:chat",
handler="support",
action="chat"
constraints={
chat = "(chat|assist)"
});
// Using JSON notation for CF engines < 9
addRoute(pattern="/en/:chat",
handler="support",
action="chat"
constraints="{
'chat' : '(chat|assist)'
}");
As you can see there is a new argument in the addRoute method called constraints, which basically is a structure or JSON structure of custom regex constraints on placeholders. This way, you can easily match whatever you like to incoming URLs. In my case my regex was a simple list of two static parts. Yours could be more fancy! Anyways, hope you enjoy this new feature.
Blog
Recent Entries
TestBox 7 : Real-Time Streaming, a Browser IDE, and a Major Leap for BoxLang
TestBox 7.x series continues our mission to be the best testing framework for BoxLang and CFML. This release is focused heavily on BoxLang CLI runner enhancements, real-time streaming test execution via SSE, a powerful dry run capability, the brand-new TestBox RUN web IDE, and significant quality-of-life improvements for developers working in both BoxLang and CFML environments.
From Legacy Risk to Modern Agility: A Phased Modernization Roadmap for CFML Teams
Many organizations running CFML applications today face the same challenge.
Their systems still work.
They support core business processes.
They generate revenue.
But at the same time, those platforms are increasingly exposed to risk.
Unsupported runtimes, operational fragility, security exposure, and difficulty integrating with modern systems are becoming more common in environments still running older versions of Adobe ColdFusion or Lucee.
The quest...
Add Your Comment