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: endpoint for unpublish page #1131

Merged
merged 1 commit into from
Jan 7, 2025
Merged

feat: endpoint for unpublish page #1131

merged 1 commit into from
Jan 7, 2025

Conversation

khorshuheng
Copy link
Collaborator

The current endpoint, which the desktop application used to unpublish page (/workspace/{workspace_id}/publish), cannot be used by AppFlowy Web because this endpoint wrongly expects a request body for a delete method. This PR add a different endpoint that adheres to the REST API convention.

The PR also fixed a previously undiscovered bug, where unpublished pages are still considered published.

Copy link
Contributor

@speed2exe speed2exe left a comment

Choose a reason for hiding this comment

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

LGTM

@khorshuheng khorshuheng merged commit 48224c6 into main Jan 7, 2025
10 of 11 checks passed
@khorshuheng khorshuheng deleted the unpublish-page branch January 7, 2025 05:27
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