water.css

master
bel 2023-06-17 09:11:06 -06:00
parent e8193e627a
commit 7777d2782a
3 changed files with 8 additions and 3 deletions

View File

@ -98,9 +98,11 @@ func listenAndServe(ctx context.Context) {
}
func handle(w http.ResponseWriter, r *http.Request) {
cookie, _ := ParseCookie(r)
if err := _handle(w, r); err != nil {
u, _, _ := r.BasicAuth()
log.Printf("%s: %s: %v", u, r.URL.Path, err)
log.Printf("%s: %s: %v", cookie.Name, r.URL.Path, err)
} else {
log.Printf("%s: %s", cookie.Name, r.URL.Path)
}
}
@ -117,7 +119,8 @@ func _handle(w http.ResponseWriter, r *http.Request) error {
}
func handleLogin(w http.ResponseWriter, r *http.Request) error {
return errors.New("not impl")
w.Write(htmlLogin)
return nil
}
func handleUI(w http.ResponseWriter, r *http.Request) error {

View File

@ -1,5 +1,6 @@
<html>
<header>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css">
</header>
<body>
</body>

View File

@ -1,5 +1,6 @@
<html>
<header>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css">
</header>
<body>
</body>