Files
svc-api-x/v1/taffy/examples/consumer/Application.cfc
2024-10-23 11:17:42 +03:00

20 lines
485 B
Plaintext

<cfcomponent>
<cfscript>
//this application is entirely separate from the api;
//essentially, it might as well be running on another server.
this.name = hash(getCurrentTemplatePath());
function onApplicationStart(){
application.wsLoc = "http://#cgi.server_name#:#cgi.server_port#/taffy/examples/api/index.cfm";
}
function onRequestStart(){
if (structKeyExists(url, "reload") && url.reload == true){
onApplicationStart();
}
}
</cfscript>
</cfcomponent>