package views import ( "github.com/gorilla/mux" "net/http" "sonarqube-badge/templates" ) func getLogin(res http.ResponseWriter, req *http.Request) { templates.Layout(templates.Login(), "Login").Render(req.Context(), res) } func LoginRouter(r *mux.Router) { r.HandleFunc("/login", getLogin).Methods("GET") }