Merge pull request #833 from AppFlowy-IO/modify-page-view-endpoint

fix: update page view collab endpoint to follow naming convention
This commit is contained in:
Khor Shu Heng 2024-09-19 13:01:10 +08:00 committed by GitHub
commit e499c4c720
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ impl Client {
view_id: Uuid,
) -> Result<PageCollab, AppResponseError> {
let url = format!(
"{}/api/workspace/{}/page_view/{}",
"{}/api/workspace/{}/page-view/{}",
self.base_url, workspace_id, view_id
);
let resp = self

View File

@ -119,7 +119,7 @@ pub fn workspace_scope() -> Scope {
.route(web::get().to(v1_get_collab_handler)),
)
.service(
web::resource("/{workspace_id}/page_view/{view_id}")
web::resource("/{workspace_id}/page-view/{view_id}")
.route(web::get().to(get_page_view_handler)),
)
.service(