package controllers import ( "net/http" glecho "code.crute.us/mcrute/golib/echo" "github.com/labstack/echo/v4" ) func IndexHandler(c echo.Context) error { return c.Render(http.StatusOK, "index.tpl", nil) } func AccountFormHandler(c echo.Context) error { return c.Render(http.StatusOK, "account.tpl", nil) } func UserFormHandler(c echo.Context) error { return c.Render(http.StatusOK, "user.tpl", nil) } func LogoutHandler(c echo.Context) error { glecho.DeleteAllCookies(c) return c.Redirect(http.StatusFound, "/") }