From e86cd42b17f6d8225a7b4b17161a00f36275268f Mon Sep 17 00:00:00 2001 From: msyu Date: Tue, 29 Oct 2024 06:37:48 +0300 Subject: [PATCH] 404 web xml debug --- v1/Application.cfc | 4 ++-- v1/resources/svc_ls.cfc | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index c0e6d82..4cee2a5 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -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 diff --git a/v1/resources/svc_ls.cfc b/v1/resources/svc_ls.cfc index a2c4517..ecf4bb1 100644 --- a/v1/resources/svc_ls.cfc +++ b/v1/resources/svc_ls.cfc @@ -14,7 +14,7 @@ } /> - + - + ---> + + + + \ No newline at end of file