ss/short.go

10 lines
187 B
Go
Raw Normal View History

2024-05-19 20:48:06 +03:00
package ss
// Returns the handler that redirects to the specified URL (u)
func Redirect(u string, status Status) Handler {
return Func(func(c *Context){
c.Redirect(u, status)
})
}