Skip to content

refactor(appview): share the upstream target and service-auth steps - #100

Closed
ewanc26 wants to merge 1 commit into
mainfrom
work/route-helpers
Closed

ewanc26 wants to merge 1 commit into
mainfrom
work/route-helpers

Conversation

@ewanc26

@ewanc26 ewanc26 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Refs #89 (route helpers, the appview part).

What this changes

src/appview/appview_routes.c: proxy_appview and proxy_fallback repeated the upstream resolution, target-URL build and service-auth minting. They now share appview_prepare_target and mint_service_auth. The differing logic stays put: the read-after-write splice in proxy_appview, and Bearer verification in the fallback.

Verification

  • ctest: 46/46 pass; no new warnings from this file.
  • No behaviour change intended.

Still open under #89: the admin, sync and repo route files and the account registry.

Docs

None needed: internal refactor with no user-facing behaviour, config or API change.

Changelog: none — internal refactor, no behaviour change.

🤖 Generated with Claude Code

proxy_appview and proxy_fallback each resolved the upstream, built the
target URL and minted service-auth from the account's repo key. Both now
use appview_prepare_target and mint_service_auth. The differing checks stay
where they were: the read-after-write splice and Bearer verification.

Behaviour is unchanged; ctest is 46/46.

Refs #89

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@ewanc26

ewanc26 commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

Replaced by #110 (branch renamed to type/slug so the flow / conventions check passes). Same commits and content.

@ewanc26 ewanc26 closed this Oct 16, 2026
@ewanc26
ewanc26 deleted the work/route-helpers branch October 16, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant