package server import ( "net/http" "github.com/labstack/echo/v4" "github.com/rjNemo/rentease/config" "github.com/rjNemo/rentease/internal/view" ) func handleHomePage(hc *config.Host) echo.HandlerFunc { return func(ctx echo.Context) error { return renderTempl(ctx, http.StatusOK, view.Index(&view.HostViewModel{ Name: hc.Name, Address: hc.Address, ZipCode: hc.ZipCode, City: hc.City, PhoneNumber: hc.PhoneNumber, Email: hc.Email, })) } }