added redirect to context

This commit is contained in:
2017-11-13 20:32:50 +00:00
parent dcca37ac28
commit ce0d63f9e7
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -4,6 +4,7 @@ import (
"context"
"net/http"
"net/url"
"github.com/gobuffalo/buffalo/render"
)
@@ -15,4 +16,5 @@ type Context interface {
Param(key string) string
Set(key string, value interface{})
Render(status int, rr render.Renderer) error
Redirect(status int, url string) error
}