Redirect
Use SendRedirect()
to redirect to a different location.
package handlers
import "github.com/razshare/frizzante/frz"
func Hello(c *frz.Connection) { c.SendRedirect("/login", 302) // Redirects to /login}
Use SendRedirect()
to redirect to a different location.
package handlers
import "github.com/razshare/frizzante/frz"
func Hello(c *frz.Connection) { c.SendRedirect("/login", 302) // Redirects to /login}