Skip to content

Commit

Permalink
Merge pull request #833 from AppFlowy-IO/modify-page-view-endpoint
Browse files Browse the repository at this point in the history
fix: update page view collab endpoint to follow naming convention
  • Loading branch information
khorshuheng authored Sep 19, 2024
2 parents 0b193e1 + 89ae8e9 commit e499c4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/client-api/src/http_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/api/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e499c4c

Please sign in to comment.