add login multi api & redirect
This commit is contained in:
@@ -32,3 +32,9 @@ func View(c echo.Context, cmp templ.Component) error {
|
||||
|
||||
return cmp.Render(c.Request().Context(), c.Response().Writer)
|
||||
}
|
||||
|
||||
func Redirect(c echo.Context, url string) error {
|
||||
c.Response().Header().Set("HX-Redirect", url)
|
||||
|
||||
return c.String(http.StatusOK, url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user