2024-01-10 20:11:02 +03:00
|
|
|
package bond
|
|
|
|
|
2024-01-10 21:19:23 +03:00
|
|
|
// Returns the handler that redirects to the specified URL (u)
|
2024-01-10 20:11:02 +03:00
|
|
|
func Redirect(u string, status Status) Handler {
|
|
|
|
return Func(func(c *Context){
|
|
|
|
c.Redirect(u, status)
|
|
|
|
})
|
|
|
|
}
|