add certificate

This commit is contained in:
root
2026-05-18 00:07:40 -04:00
parent dc7acf2536
commit 0d3cdd3857
13 changed files with 869 additions and 44 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
/**
* Smoke-test the same API routes the Vite client uses.
* Usage: node scripts/test-api.mjs
* $env:API_BASE="http://127.0.0.1:5173"; node scripts/test-api.mjs # via Vite proxy
*/
const base = (process.env.API_BASE ?? 'http://127.0.0.1:8000').replace(/\/$/, '')
* Usage: node scripts/test-api.mjs
* $env:API_BASE="http://127.0.0.1:5173"; node scripts/test-api.mjs # via Vite proxy
*/
const base = (process.env.API_BASE ?? 'http://127.0.0.1:8080').replace(/\/$/, '')
const tests = [
['GET', '/up', null],