Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
Relay's GET /admin page is served from src/admin-routes.ts - no behaviour change #121
Sign in to join this conversation.
First half of #94, made smaller (it failed twice on the deploy, not the change).
Done:
Software/so101/src/admin-routes.tsexports one function that servesGET /admin: the page, and the 401/403 refusals.relay.tscalls it; the POST actions stay inrelay.tsfor now.json,readBody) stay inrelay.tsand are passed in as plain arguments.src/admin-relay.test.ts,src/relay.test.tsandsrc/admin.test.tspass untouched;bun x tsc --noEmitpasses.The earlier attempt is on branch
smith/94-relay-s-admin-routes-live-in-their-own-m(pull #107) and may be reused for the GET part.