From 4de0a01464f8bd2efaa31e986e0f5218a73eadc1771af366a3ba3f3a70fcbc45 Mon Sep 17 00:00:00 2001 From: Lixen Wraith Date: Tue, 13 Oct 2026 20:26:00 -0400 Subject: [PATCH] v0.13.4 api update for deployment --- doc/deployment.md | 6 ++- doc/development.md | 2 +- doc/todo.md | 3 +- .../server/webserver/chess-client-web/app.js | 30 ++++------- internal/server/webserver/server.go | 54 ++++++++++++------- internal/server/webserver/server_test.go | 36 +++++++++++++ 6 files changed, 87 insertions(+), 44 deletions(-) diff --git a/doc/deployment.md b/doc/deployment.md index 2e51a8c..ac604da 100644 --- a/doc/deployment.md +++ b/doc/deployment.md @@ -208,8 +208,10 @@ Browser clients are static files published by the host, and must match the server's API paths: - **Web client:** copy `internal/server/webserver/chess-client-web/` - (`index.html`, `app.js`, `style.css`) to the site directory. Without the - embedded `/config` endpoint, it uses the `/chess` API prefix. + (`index.html`, `app.js`, `style.css`) to the site directory. It takes its + API base from its script element, ``, + "twice": ``, + } { + content := fstest.MapFS{"index.html": {Data: []byte(page)}} + if _, err := indexHTML(content, "http://localhost:8080"); err == nil { + t.Errorf("%s: no error", name) + } + } +}