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: api for publish page to web #1108

Merged
merged 1 commit into from
Jan 3, 2025
Merged

feat: api for publish page to web #1108

merged 1 commit into from
Jan 3, 2025

Conversation

khorshuheng
Copy link
Collaborator

API endpoint for publishing a page to web.

@khorshuheng khorshuheng requested a review from appflowy December 31, 2024 09:29
@@ -1034,6 +1041,216 @@ pub async fn update_page(
Ok(())
}

fn replace_invalid_url_chars(input: &str) -> String {
let regex = Regex::new(r"[^\w-]").unwrap();
Copy link
Contributor

@appflowy appflowy Jan 2, 2025

Choose a reason for hiding this comment

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

we can use lazy_static to wrap the regex

@appflowy appflowy merged commit ab0fa6e into main Jan 3, 2025
11 checks passed
@appflowy appflowy deleted the web-publish-api branch January 3, 2025 13:28
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