Rename API endpoints to /tendrils/api/*, detect SSE via Accept header

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-30 22:31:58 -08:00
parent 98c7fc75b7
commit d63b8192d2
4 changed files with 10 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ type artmapToAddr struct {
var artmapClient = &http.Client{Timeout: 2 * time.Second}
func (t *Tendrils) probeArtmap(ip net.IP) {
url := fmt.Sprintf("http://%s:8080/api/config", ip)
url := fmt.Sprintf("http://%s:8080/artmap/api/status", ip)
resp, err := artmapClient.Get(url)
if err != nil {