Skip to content

feat(api): optional HTLB_DEV stub login - #168

Closed
dlgrv wants to merge 1 commit into
feat/api-useful-minefrom
feat/api-devauth
Closed

dlgrv wants to merge 1 commit into
feat/api-useful-minefrom
feat/api-devauth

Conversation

@dlgrv

@dlgrv dlgrv commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add POST /api/htlb/v1/dev/login when HTLB_DEV=1 (never enable in production).
  • Wire config.Dev and register routes in bind.go.

Stacked on #167 (or feat/api-useful-mine) because it shares bind.go.

Test plan

  • make api-test
  • With HTLB_DEV=1, stub login returns a JWT; without the flag, route is absent

@dlgrv

dlgrv commented Oct 13, 2026

Copy link
Copy Markdown
Owner Author

Closing as superseded.

book.dlgrv.com already matches origin/main (verified file hashes for useful/privacy/login/interactive.js and related site assets). The Useful UI and /useful/mine API landed via later main PRs (#186–#196); this stacked branch is behind and would risk regressing prod-aligned code. #167 also conflicts with main.

@dlgrv dlgrv closed this Oct 13, 2026
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