1
0
mirror of https://github.com/labstack/echo.git synced 2025-06-17 00:17:36 +02:00

Implemented rewrite middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2017-12-28 11:24:34 -08:00
parent 434f4d1ae8
commit da083ffd0a
15 changed files with 154 additions and 36 deletions

View File

@ -87,7 +87,7 @@ func TestProxy(t *testing.T) {
// Rewrite
e = echo.New()
e.Pre(ProxyWithConfig(ProxyConfig{
e.Use(ProxyWithConfig(ProxyConfig{
Balancer: rrb,
Rewrite: map[string]string{
"/old": "/new",