Skip to content

Conversation

schottra
Copy link
Contributor

@schottra schottra commented Oct 3, 2025

Implements the json/csv download endpoints

TODO:

  • make sure grantee flow works
  • tests

return c.Next()
}

// Middleware to require auth for the userId in the route params
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this the case for all requests currently?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. If you pass a user_id query param, we check against that for contextual requests.
But for most routes, if you leave out the query param, we just leave out contextual info.
This is stricter in that we validate your wallet against the userId in the route itself.

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.

2 participants