404 web xml debug

This commit is contained in:
msyu
2024-10-29 06:37:48 +03:00
parent a78bc792b9
commit e86cd42b17
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -149,14 +149,14 @@
//if (UCase(arguments.verb) EQ 'OPTIONS') return newRepresentation().noData().withStatus("204","No Data").withHeaders({"Content-Type":"application/json;charset=utf-8"});
if (UCase(arguments.verb) EQ 'OPTIONS') return true;
/*
var auth="";
if (structKeyExists(headers,"Authorization")) {
auth=headers.Authorization;
} else {
return representationOf("Authorization header expected").withStatus(401);
}
/*
var httpService = new http(method = "GET", charset = "utf-8", url = "https://personal-cabinet.adl.nubes.ru/api/v1/user", timeout="3");
httpService.addParam(type = "HEADER", name = "Accept", value = "application/json");
httpService.addParam(type = "HEADER", name = "Authorization", value = "#auth#"); //passthrough
+6 -2
View File
@@ -14,7 +14,7 @@
}
/>
<cffunction name="get" hint="Список сервисов">
<!--- <cffunction name="get" hint="Список сервисов">
<cfargument name="pageSize" type="string" hint="type:integer" default="100"/>
<cfargument name="page" type="string" hint="type:integer" default="1"/>
<cfargument name="orderBy" type="string" hint="type:string, description:comma-separated list of fields to sort by, example:fld1.ASC,fld2.DESC,fld3.ASC" default=""/>
@@ -78,6 +78,10 @@
<cfset "out.runDurationMs"=getTickCount()-request.startTickCount/>
<!---<cfset "out.sql"=#local.result.sql#/>--->
<cfreturn representationOf(out)/>
</cffunction>
</cffunction> --->
<cffunction name="get" hint="проверка">
<cfreturn representationOf("Проверка связи")/>
</cffunction>
</cfcomponent>