Rename Basking to Nurse

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-11-01 00:06:51 -06:00
1 parent cec2702260
commit 6a4be5b2f4
24 files changed
+208 -208

No files matched your search

+6 -6
View File
@@ -1,4 +1,4 @@
// Package web serves Basking's dashboard and its JSON API.
// Package web serves Nurse's dashboard and its JSON API.
package web
import (
@@ -15,9 +15,9 @@ import (
"strings"
"sync"
"git.veillax.com/Veillax/basking/internal/config"
"git.veillax.com/Veillax/basking/internal/oidc"
"git.veillax.com/Veillax/basking/internal/store"
"git.veillax.com/Veillax/nurse/internal/config"
"git.veillax.com/Veillax/nurse/internal/oidc"
"git.veillax.com/Veillax/nurse/internal/store"
)
//go:embed static
@@ -136,8 +136,8 @@ func (s *Server) api(fn handlerFunc) http.HandlerFunc {
return
}
// A browser must send a header a web page on another site cannot add.
if r.Method != http.MethodGet && r.Header.Get("X-Basking") != "1" {
fail(w, http.StatusForbidden, "missing X-Basking header")
if r.Method != http.MethodGet && r.Header.Get("X-Nurse") != "1" {
fail(w, http.StatusForbidden, "missing X-Nurse header")
return
}
st, err := s.notebook(c, ses.Sub, ses.Name, ses.Email)