diff --git a/README.md b/README.md index fed9f69..554bc92 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ example with a static provider: User can sets multiple providers at the same time. +_See examples of various providers in [examples](https://github.com/umputun/reproxy/tree/master/examples)_ + ### Static This is the simplest provider defining all mapping rules directly in the command line (or environment). Multiple rules supported. diff --git a/app/discovery/discovery_test.go b/app/discovery/discovery_test.go index d8c6690..f1f4e29 100644 --- a/app/discovery/discovery_test.go +++ b/app/discovery/discovery_test.go @@ -112,6 +112,7 @@ func TestService_Match(t *testing.T) { dest string ok bool }{ + {"example.com", "/api/svc3/xyz/something", "http://127.0.0.3:8080/blah3/xyz/something", true}, {"example.com", "/api/svc3/xyz", "http://127.0.0.3:8080/blah3/xyz", true}, {"abc.example.com", "/api/svc1/1234", "http://127.0.0.1:8080/blah1/1234", true}, {"zzz.example.com", "/aaa/api/svc1/1234", "/aaa/api/svc1/1234", false},