feat: initial commit
This commit is contained in:
16
internal/http/handler/webui/auth/login_page.go
Normal file
16
internal/http/handler/webui/auth/login_page.go
Normal file
@ -0,0 +1,16 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"forge.cadoles.com/wpetit/kouiz/internal/http/handler/webui/auth/component"
|
||||
"github.com/a-h/templ"
|
||||
)
|
||||
|
||||
func (h *Handler) getLoginPage(w http.ResponseWriter, r *http.Request) {
|
||||
vmodel := component.LoginPageVModel{
|
||||
Providers: h.providers,
|
||||
}
|
||||
login := component.LoginPage(vmodel)
|
||||
templ.Handler(login).ServeHTTP(w, r)
|
||||
}
|
Reference in New Issue
Block a user