mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
18 lines
407 B
Go
18 lines
407 B
Go
package api
|
|
|
|
import (
|
|
"html/template"
|
|
"net/http"
|
|
"os"
|
|
)
|
|
|
|
func GetPageIntegration(w http.ResponseWriter, r *http.Request) {
|
|
navbarTmpl, _ := Container.GetPageUseCase.GetPage("componentNavbar", nil)
|
|
templ, _ := Container.GetPageUseCase.GetPage("integration", map[string]interface{}{
|
|
"Navbar": template.HTML(navbarTmpl),
|
|
"Head": headTmpl,
|
|
"Host": os.Getenv("HOST"),
|
|
})
|
|
_, _ = w.Write(templ)
|
|
}
|