diff --git a/route.go b/route.go index c9e6ee9..2d7ef9b 100644 --- a/route.go +++ b/route.go @@ -10,6 +10,10 @@ import ( "strings" ) +type Redirecter interface { + Redirect(url string) error +} + type routeImpl struct { channelOwner handling *chan bool @@ -17,6 +21,10 @@ type routeImpl struct { didThrow bool } +func (r *routeImpl) Redirect(url string) error { + return r.redirectedNavigationRequest(url) +} + func (r *routeImpl) startHandling() chan bool { r.Lock() defer r.Unlock()