404 web xml debug
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user