16 lines
315 B
Go
16 lines
315 B
Go
|
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")
|
||
|
}
|