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

Rest API: DELETE /draft/filepath #52

Open
francisduvivier opened this issue Jan 10, 2025 · 1 comment
Open

Rest API: DELETE /draft/filepath #52

francisduvivier opened this issue Jan 10, 2025 · 1 comment

Comments

@francisduvivier
Copy link
Collaborator

Currently there is no way yet to remove draft files after you have added them.
This ticket is add that.
Note that this is only needed for draft files because non-draft is considered immutable

@francisduvivier
Copy link
Collaborator Author

Steps

  • Add @delete("/apps/{slug}/draft/files/{filePath}") route in private-rest.ts
    • add deleteDraftFile method to BadgeHubData
    • implement in BadgeHubData class by removing the file and updating the database as well.

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