feat: integration page #41

This commit is contained in:
Florian Sylvain
2024-06-14 15:23:51 +02:00
parent e4c2230b64
commit 0759ab6d70
7 changed files with 95 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
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)
}