Skip to content

Commit

Permalink
feat: rename shares_service
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgehermo9 committed Oct 9, 2024
1 parent d594f42 commit ab597e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/server/src/routes/shares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ struct CreateShareResponse {
}

async fn create_share(
State(shares_service): State<ShareService>,
State(share_service): State<ShareService>,
Json(request): Json<CreateShareRequest>,
) -> impl IntoResponse {
let create_result = shares_service
let create_result = share_service
.create_share(request.json, request.query, request.expiration_time_secs)
.await;

Expand Down Expand Up @@ -81,10 +81,10 @@ impl From<GetShareError> for ErrorObject {
}

async fn get_share(
State(shares_service): State<ShareService>,
State(share_service): State<ShareService>,
Path(id): Path<Uuid>,
) -> impl IntoResponse {
let get_share_result = shares_service.get_share(id).await;
let get_share_result = share_service.get_share(id).await;

match get_share_result {
Ok(share) => {
Expand Down

0 comments on commit ab597e7

Please sign in to comment.