20 lines
485 B
Plaintext
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>
|