mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 16:18:14 +08:00
Now supports the same upstream url by difrenciating by http method. Also broke up the proxy middleware into three seperate pieces that do their thing and stick something into the OWIN context
This commit is contained in:
@ -50,7 +50,8 @@ namespace Ocelot.AcceptanceTests
|
||||
new ReRoute
|
||||
{
|
||||
DownstreamTemplate = "http://localhost:51879/",
|
||||
UpstreamTemplate = "/"
|
||||
UpstreamTemplate = "/",
|
||||
UpstreamHttpMethod = "Get"
|
||||
}
|
||||
}
|
||||
}))
|
||||
@ -72,7 +73,8 @@ namespace Ocelot.AcceptanceTests
|
||||
new ReRoute
|
||||
{
|
||||
DownstreamTemplate = "http://localhost:51879/",
|
||||
UpstreamTemplate = "/"
|
||||
UpstreamTemplate = "/",
|
||||
UpstreamHttpMethod = "Post"
|
||||
}
|
||||
}
|
||||
}))
|
||||
|
@ -1,3 +1,4 @@
|
||||
ReRoutes:
|
||||
- DownstreamTemplate: http://localhost:51879/
|
||||
UpstreamTemplate: /
|
||||
HttpMethod: Get
|
||||
|
Reference in New Issue
Block a user