From 7da8ee593e27cad958e2674829248f4943891816 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sat, 10 Apr 2021 13:18:28 -0500 Subject: [PATCH] add reference to examples --- README.md | 2 ++ app/discovery/discovery_test.go | 1 + 2 files changed, 3 insertions(+) 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},