Files
svc-api-x/v1/taffy/tests/testapi/Application.cfc

28 lines
814 B
Plaintext

component extends="taffy.core.api" {
this.name = "TaffyE2ETestAPI_" & hash(getCurrentTemplatePath());
this.sessionManagement = false;
variables.testApiPath = getDirectoryFromPath(getCurrentTemplatePath());
variables.rootPath = getDirectoryFromPath(left(variables.testApiPath, len(variables.testApiPath) - 1));
variables.rootPath = getDirectoryFromPath(left(variables.rootPath, len(variables.rootPath) - 1));
this.mappings["/taffy"] = variables.rootPath;
this.mappings["/resources"] = variables.testApiPath & "resources";
variables.framework = {
disableDashboard: true,
disabledDashboardRedirect: "",
returnExceptionsAsJson: true
};
function onApplicationStart() {
return super.onApplicationStart();
}
function onRequestStart(targetPath) {
return super.onRequestStart(targetPath);
}
}