Can get a single movement information
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
use crate::controllers::HttpResult;
|
||||
use crate::extractors::account_extractor::AccountInPath;
|
||||
use crate::extractors::auth_extractor::AuthExtractor;
|
||||
use crate::extractors::movement_extractor::MovementInPath;
|
||||
use crate::services::movements_service;
|
||||
use crate::services::movements_service::UpdateMovementQuery;
|
||||
use actix_web::{HttpResponse, web};
|
||||
@ -21,3 +22,8 @@ pub async fn get_list_of_account(account_id: AccountInPath) -> HttpResult {
|
||||
Ok(HttpResponse::Ok()
|
||||
.json(movements_service::get_list_account(account_id.as_ref().id()).await?))
|
||||
}
|
||||
|
||||
/// Get a single movement information
|
||||
pub async fn get_single(movement: MovementInPath) -> HttpResult {
|
||||
Ok(HttpResponse::Ok().json(movement.movement()))
|
||||
}
|
||||
|
Reference in New Issue
Block a user