Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
indpurvesh committed Dec 28, 2024
1 parent bd3cdda commit f1af315
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/api/handlers/collection/store_collection_api_handler.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use std::sync::Arc;
use axum::{Extension, Json};
use axum::extract::State;
use crate::api::handlers::collection::request::store_collection_request::StoreCollectionRequest;
use crate::avored_state::AvoRedState;
use crate::error::{Error, Result};
use crate::models::collection_model::{CollectionModel, CreatableCollection};
use crate::models::token_claim_model::LoggedInUser;
use crate::models::validation_error::ErrorResponse;
use crate::responses::ApiResponse;
use axum::extract::State;
use axum::{Extension, Json};
use std::sync::Arc;

pub async fn store_collection_api_handler (
pub async fn store_collection_api_handler(
state: State<Arc<AvoRedState>>,
Extension(logged_in_user): Extension<LoggedInUser>,
Json(payload): Json<StoreCollectionRequest>,
Expand Down Expand Up @@ -51,4 +51,4 @@ pub async fn store_collection_api_handler (
};

Ok(Json(response))
}
}
10 changes: 5 additions & 5 deletions src/api/handlers/collection/update_collection_api_handler.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use std::sync::Arc;
use axum::{Extension, Json};
use axum::extract::{Path, State};
use crate::api::handlers::collection::request::update_collection_request::UpdateCollectionRequest;
use crate::avored_state::AvoRedState;
use crate::error::{Error, Result};
use crate::models::collection_model::{CollectionModel, UpdatableCollection};
use crate::models::token_claim_model::LoggedInUser;
use crate::models::validation_error::ErrorResponse;
use crate::responses::ApiResponse;
use axum::extract::{Path, State};
use axum::{Extension, Json};
use std::sync::Arc;

pub async fn update_collection_api_handler (
pub async fn update_collection_api_handler(
state: State<Arc<AvoRedState>>,
Path(collection_id): Path<String>,
Extension(logged_in_user): Extension<LoggedInUser>,
Expand Down Expand Up @@ -52,4 +52,4 @@ pub async fn update_collection_api_handler (
};

Ok(Json(response))
}
}

0 comments on commit f1af315

Please sign in to comment.