go-cook-portal/handlers/home.go

16 lines
302 B
Go
Raw Normal View History

2024-04-09 07:29:45 -07:00
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())
}