go-cook-portal/handlers/home.go
2024-04-09 07:29:45 -07:00

16 lines
302 B
Go

package handlers
import (
"net/http"
"templ-test/views"
"github.com/labstack/echo/v4"
)
func (h *Handlers) HomeHandler(c echo.Context) error {
return Render(c, http.StatusOK, views.Home())
}
func (h *Handlers) ListHandler(c echo.Context) error {
return Render(c, http.StatusOK, views.List())
}