Enhance REST provider
This commit is contained in:
parent
48d98dcf45
commit
51486b18fa
5 changed files with 94 additions and 40 deletions
|
@ -440,13 +440,15 @@ func (s *SimpleSuite) TestMultiprovider(c *check.C) {
|
|||
err = try.GetRequest("http://127.0.0.1:8080/api/rawdata", 1000*time.Millisecond, try.BodyContains("service"))
|
||||
c.Assert(err, checker.IsNil)
|
||||
|
||||
config := dynamic.HTTPConfiguration{
|
||||
Routers: map[string]*dynamic.Router{
|
||||
"router1": {
|
||||
EntryPoints: []string{"web"},
|
||||
Middlewares: []string{"customheader@file"},
|
||||
Service: "service@file",
|
||||
Rule: "PathPrefix(`/`)",
|
||||
config := dynamic.Configuration{
|
||||
HTTP: &dynamic.HTTPConfiguration{
|
||||
Routers: map[string]*dynamic.Router{
|
||||
"router1": {
|
||||
EntryPoints: []string{"web"},
|
||||
Middlewares: []string{"customheader@file"},
|
||||
Service: "service@file",
|
||||
Rule: "PathPrefix(`/`)",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue