Skip to content

Commit 15d4866

Browse files
committed
strip prefix
1 parent bad9f3c commit 15d4866

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lambda_api/application/proxy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export async function get(request: any) {
1414

1515
// append the path
1616
let path = request.path;
17+
// strip the proxy prefix from the path
18+
path = path.replace("/proxy/", "");
1719
let url = `https://dog.ceo/api/${path}`;
1820

1921
// dogs api
@@ -25,7 +27,9 @@ export async function get(request: any) {
2527
},
2628
};
2729

30+
console.log(axiosConfig);
2831
let dogsResponse = await axios(axiosConfig);
32+
console.log(dogsResponse);
2933

3034
return response;
3135
}

0 commit comments

Comments
 (0)