mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
15 lines
340 B
Go
15 lines
340 B
Go
package api
|
|
|
|
import (
|
|
"html/template"
|
|
"net/http"
|
|
)
|
|
|
|
func GetHomePage(w http.ResponseWriter, _ *http.Request) {
|
|
navbarTmpl, _ := Container.GetPageUseCase.GetPage("componentNavbar", nil)
|
|
homeTmpl, _ := Container.GetPageUseCase.GetPage("home", map[string]interface{}{
|
|
"Navbar": template.HTML(navbarTmpl),
|
|
})
|
|
_, _ = w.Write(homeTmpl)
|
|
}
|