Add self-info endpoint for ProjectConfigurator discovery, sync shared updates
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:
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 {
|
||||
|
||||
Reference in new issue
Block a user