2024-05-19 20:48:06 +03:00
|
|
|
package ss
|
2024-01-10 20:11:02 +03:00
|
|
|
|
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)
|
|
|
|
})
|
|
|
|
}
|
2024-01-10 22:42:50 +03:00
|
|
|
|