Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more predictable routes #59

Open
mixmix opened this issue Sep 15, 2022 · 1 comment
Open

more predictable routes #59

mixmix opened this issue Sep 15, 2022 · 1 comment

Comments

@mixmix
Copy link
Member

mixmix commented Sep 15, 2022

the routes for the viewer API are currently a bit hectic. I think they could be organised more clearly. Something like

Proposed              Current
=================     ==================

/thread/:id           /msg/%:id
/hashtag/:hashtag     /tag/:tagName

/blob/:blobId         /blob/:blobId

/feed                 /get-profiles
/feed/:id             /profile-by-id/:id
/feed/:id/counts      /counts-by-id/:id
/feed/:id/threads     /feed-by-id/:id

/user/:name           /profile/:username
/user/:name/counts    /counts/:username
/user/:name/threads   /feed/:userName

?                     /default

@mixmix
Copy link
Member Author

mixmix commented Sep 15, 2022

I'd be very interested which APIs are currently used

  • what is /default ?
  • do we need the user/ username ones?

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

No branches or pull requests

1 participant