Skip to content

feat(api): useful mine list and user-only votes - #167

Open
dlgrv wants to merge 1 commit into
mainfrom
feat/api-useful-mine
Open

dlgrv wants to merge 1 commit into
mainfrom
feat/api-useful-mine

Conversation

@dlgrv

@dlgrv dlgrv commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add GET /useful/mine for signed-in users; require user auth for POST /useful (guests no longer vote).
  • Rehash voterKey and collapse duplicates when merging guest votes into a user.
  • Add voterKey index (migration + collection create path).

Test plan

  • make api-test
  • Smoke: GET /useful/mine → 401 without Bearer; 200 with user JWT
  • Guest POST /useful → 401

This branch has not been deployed

No deployments
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