mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-29 19:38:41 +01:00
added redirect to context
This commit is contained in:
@@ -106,3 +106,8 @@ func (d *DefaultContext) Render(status int, rr render.Renderer) error {
|
||||
d.Response().WriteHeader(status)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (d *DefaultContext) Redirect(status int, url string) error {
|
||||
http.Redirect(d.Response(), d.Request(), url, status)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user