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

feat: Add support for purged resource link #1897

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Conversation

athurg
Copy link
Contributor

@athurg athurg commented Jul 5, 2023

Currently, the resource link has two forms like below:

  • /o/r/:resourceId/:publicId, which is marked as DEPRECATED.
  • /o/r/:resourceId/:publicId/:filename

Both of them are too redundant. In fact, just a resourceId is enough to fetch a resource.

So I made this PR to add support for a new link form like /o/r/:resourceId.

For compatible with the old version, the old styles are still be supported, but should migrate the the new one.

And in the next version, I'll change the link in frontend code to this new form.

@athurg athurg requested a review from boojack as a code owner July 5, 2023 08:06
@athurg athurg self-assigned this Jul 5, 2023
@athurg athurg added enhancement New feature or request backend labels Jul 5, 2023
@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Uffizzi Preview deployment-30174 was deleted.

Copy link
Collaborator

@boojack boojack left a comment

Choose a reason for hiding this comment

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

LGTM

@boojack boojack merged commit 5ea561a into main Jul 5, 2023
@boojack boojack deleted the feat/purge_resource_link branch July 12, 2023 01:37
lincolnthalles pushed a commit to lincolnthalles/memos that referenced this pull request Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants