File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/WebJobs.Script.Tests.E2E Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 48
48
},
49
49
"catchAll" : {
50
50
"matchCondition" : {
51
- "route" : " api/{*path}"
51
+ "route" : " api/proxy/ {*path}"
52
52
},
53
53
"backendUri" : " http://localhost/api/Ping" ,
54
54
"requestOverrides" : {
57
57
},
58
58
"catchAllRoutes" : {
59
59
"matchCondition" : {
60
- "route" : " /{*path}"
60
+ "route" : " /proxy/ {*path}"
61
61
},
62
62
"backendUri" : " http://localhost/myroute" ,
63
63
"requestOverrides" : {
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public async Task CatchAllApis()
89
89
{
90
90
using ( var client = CreateClient ( ) )
91
91
{
92
- HttpResponseMessage response = await client . GetAsync ( $ "api/blahblah?code={ _fixture . FunctionDefaultKey } ") ;
92
+ HttpResponseMessage response = await client . GetAsync ( $ "api/proxy/ blahblah?code={ _fixture . FunctionDefaultKey } ") ;
93
93
94
94
string content = await response . Content . ReadAsStringAsync ( ) ;
95
95
_fixture . Assert . Equals ( "200" , response . StatusCode . ToString ( "D" ) ) ;
@@ -103,7 +103,7 @@ public async Task CatchAll()
103
103
{
104
104
using ( var client = CreateClient ( ) )
105
105
{
106
- HttpResponseMessage response = await client . GetAsync ( $ "blahblah?code={ _fixture . FunctionDefaultKey } ") ;
106
+ HttpResponseMessage response = await client . GetAsync ( $ "proxy/ blahblah?code={ _fixture . FunctionDefaultKey } ") ;
107
107
108
108
string content = await response . Content . ReadAsStringAsync ( ) ;
109
109
_fixture . Assert . Equals ( "200" , response . StatusCode . ToString ( "D" ) ) ;
You can’t perform that action at this time.
0 commit comments