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

18 lines
481 B
Plaintext

<cfcomponent extends="taffy.core.api">
<cfscript>
this.name = hash(getCurrentTemplatePath());
variables.framework = {};
variables.framework.serializer = "resources.CustomSerializer";
function onApplicationStart(){
application.JsonUtil = createObject("component", "resources.JSONUtil.JSONUtil");
application.AnythingToXML = createObject("component", "resources.AnythingToXML.AnythingToXML");
return super.onApplicationStart();
}
</cfscript>
</cfcomponent>