From d8671aa47dd0472b9779918a7a9cdddf9bfde355 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 6 Mar 2026 16:31:54 -0500 Subject: doc: architecture and authentication --- cmd/buthd/main.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cmd/buthd/main.go (limited to 'cmd/buthd/main.go') diff --git a/cmd/buthd/main.go b/cmd/buthd/main.go new file mode 100644 index 0000000..60ab749 --- /dev/null +++ b/cmd/buthd/main.go @@ -0,0 +1,16 @@ +// Buthd is the API server. +package main + +import ( + "fmt" + "html" + "log" + "net/http" +) + +func main() { + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path)) + }) + log.Fatal(http.ListenAndServe(":8081", nil)) +} -- cgit v1.2.3