2024-05-11 09:56:19 -07:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2024-07-14 09:07:16 -07:00
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
|
2024-05-11 09:56:19 -07:00
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/home"
|
|
|
|
"github.com/labstack/echo/v4"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (h *Handler) HomeIndex(c echo.Context) error {
|
2024-07-14 09:07:16 -07:00
|
|
|
return Render(c, http.StatusOK, home.Index(models.HomeIndexViewModel{
|
|
|
|
HeaderMetaTags: models.HeaderMetaTags{
|
|
|
|
Title: "Newsbot",
|
|
|
|
Description: "Welcome to your news",
|
|
|
|
Url: "",
|
|
|
|
Type: "Page",
|
|
|
|
},
|
|
|
|
}))
|
2024-05-12 09:22:47 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *Handler) HomeAbout(c echo.Context) error {
|
2024-07-14 09:07:16 -07:00
|
|
|
return Render(c, http.StatusOK, home.About(models.HomeAboutViewModel{
|
|
|
|
HeaderMetaTags: models.HeaderMetaTags{
|
|
|
|
Title: "About",
|
|
|
|
Type: "Page",
|
|
|
|
},
|
|
|
|
}))
|
|
|
|
}
|