Commit Graph
3 Commits
Author SHA1 Message Date
Sansan f26438abe0 Send the play queue ID to the server
Build and Release / build (push) Successful in 33s
Build and Release / release (push) Successful in 9s
The server keeps a play queue per client, identified by the X-Queue-Id
header. Send the stored ID with every request and save the ID from every
response, so the client switches to the new queue after a reset or a sync.
The ID is kept in localStorage so a page reload keeps the same queue.

Also send Cache-Control: no-cache, so browsers that cached a random song
before the server sent no-store fetch a new one.
2026-10-07 20:09:31 +02:00
Sansan b3ffef9fd9 Use /api/v1 with token authentication
Build and Release / build (push) Successful in 50s
Build and Release / release (push) Successful in 3m18s
All server calls go through a shared axios instance (src/api.js) that gets a token
with API_PASSWORD from the runtime config, renews it before it expires and retries
once on 401. Character images are loaded with the token as blobs. Removes the
unused express and cors dependencies and bumps the version to 1.2.0.

Closes #2
2026-10-06 19:01:13 +02:00
Sansan b952d08aad Added real frontend
Made hostname global and easy to change in docker
2022-06-21 17:48:34 +02:00