Add self-info endpoint for ProjectConfigurator discovery, sync shared updates
Lint / Lint (push) Successful in 1m5s
Tests / Go backend (push) Successful in 46s
Docker / Docker Build & Push (push) Failing after 2m1s
Tests / Dashboard checks (push) Successful in 49s

GET /api/info reports name/tabs/mount types (empty - state lives in Postgres,
no shared file mounts) so ProjectConfigurator's Projects workspace can
register this instance from just a URL.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Sonnet 5 committed 2026-09-04 15:07:02 +02:00
1 parent 557a61b4ee
commit bbf5d8bb05
126 files changed
+2897 -8542

No files matched your search

@@ -13,7 +13,7 @@ import (
"github.com/coder/websocket"
"github.com/go-chi/chi/v5"
"mediacollection/internal/config"
"repos.gfranz.ch/Gabriel20xx/shared/media-backend/internal/config"
)
type kioskMessage struct {
@@ -120,7 +120,7 @@ func (s *Server) kioskPoll(ctx context.Context) {
}
func (s *Server) kioskPollOnce(ctx context.Context) {
files, err := s.servantListFiles(ctx, "", false, 0)
files, err := s.carrierNodeListFiles(ctx, "", false, 0)
if err != nil {
return
}
@@ -179,7 +179,7 @@ func (s *Server) kioskImage(w http.ResponseWriter, r *http.Request) {
writeError(w, http.StatusNotFound, "image not found")
return
}
s.proxyServant(w, r, "/media/"+urlPath(relative))
s.proxyCarrierNode(w, r, "/media/"+urlPath(relative))
}
func kioskDuration(value string) int64 {