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:
@ -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",
|
||||
|
Reference in New Issue
Block a user