cake-order-tracker/auth/get.go
2025-07-16 22:57:36 +02:00

17 lines
279 B
Go

package auth
import (
"fmt"
"net/http"
_ "embed"
)
//go:embed templates/login.html
var loginHTML string
// returns a simple login page
func getLogin(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("content-type", "text/html")
_, _ = fmt.Fprint(w, loginHTML)
}