water.css
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<html>
|
||||
<header>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css">
|
||||
</header>
|
||||
<body>
|
||||
</body>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<html>
|
||||
<header>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css">
|
||||
</header>
|
||||
<body>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user