Files
ccp/internal/web/web.go
T
adamfandClaude Opus 5.5 06800edd91
Test and publish / test (push) Successful in 15s
Test and publish / publish (push) Successful in 3m10s
Add minimal dashboard page served at /
Single embedded HTML page that reads the daily summary and activities
endpoints with a user-supplied API key: goals, totals by kind, top labels
and a timeline for the selected day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 21:02:11 +01:00

17 lines
356 B
Go

// Package web serves the dashboard, a single static page that reads the
// /api/v1 query endpoints with an API key the viewer enters.
package web
import (
_ "embed"
"net/http"
)
//go:embed index.html
var index []byte
func Handler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
w.Write(index)
}