16 lines
302 B
Go
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())
|
|
} |