blob: eff97e16e5fd19432914c27bace813b10c94ade0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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 LogoutHandler(c echo.Context) error {
glecho.DeleteAllCookies(c)
return c.Redirect(http.StatusFound, "/")
}
|