Get accounts and balances
This commit is contained in:
@@ -17,6 +17,11 @@ pub async fn create(auth: AuthExtractor, req: web::Json<UpdateMovementQuery>) ->
|
||||
Ok(HttpResponse::Created().finish())
|
||||
}
|
||||
|
||||
/// Get the balances of all the accounts of the user
|
||||
pub async fn get_accounts_balances(auth: AuthExtractor) -> HttpResult {
|
||||
Ok(HttpResponse::Ok().json(movements_service::get_balances(auth.user_id()).await?))
|
||||
}
|
||||
|
||||
/// Get the list of movements of an account
|
||||
pub async fn get_list_of_account(account_id: AccountInPath) -> HttpResult {
|
||||
Ok(HttpResponse::Ok()
|
||||
|
||||
Reference in New Issue
Block a user