portfolio/web/handlers/loginPageHandler.go
Darius klein 5e1cd15c07
All checks were successful
build and deploy portfolio / build (pull_request) Successful in 51s
build and deploy portfolio / publish-docs (pull_request) Successful in 4s
build and deploy portfolio / publish-portfolio (pull_request) Successful in 3s
Version bump + migration dependencies
2025-05-07 22:33:21 +02:00

23 lines
393 B
Go

package handlers
import (
g "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
"net/http"
"portfolio/web/components"
)
func LoginPageHandler(w http.ResponseWriter, r *http.Request) {
err := Page("login page", createLoginBody(w, r)).Render(w)
if err != nil {
return
}
}
func createLoginBody(w http.ResponseWriter, r *http.Request) g.Node {
return Body(components.Login())
}