Started to implement account history.
This commit is contained in:
1 parent
20b5f32c71
commit
f4593df95b
8 files changed
+158
-10
No files matched your search
+6
-6
@@ -21,9 +21,9 @@ pub async fn actions(tmpl_env: MiniJinjaRenderer) -> actix_web::Result<impl Resp
|
||||
}
|
||||
|
||||
#[actix_web::get("/accounts")]
|
||||
pub async fn accounts(tmpl_env: MiniJinjaRenderer,
|
||||
req: HttpRequest,
|
||||
service_factory: web::Data<ServicesFactory>) -> actix_web::Result<impl Responder> {
|
||||
pub async fn get_accounts(tmpl_env: MiniJinjaRenderer,
|
||||
req: HttpRequest,
|
||||
service_factory: web::Data<ServicesFactory>) -> actix_web::Result<impl Responder> {
|
||||
let conn = service_factory.get_connection()?;
|
||||
let auth_service = service_factory.get_authentication_service(&conn)?;
|
||||
let user = auth_service.get_login(&req);
|
||||
@@ -34,9 +34,9 @@ pub async fn accounts(tmpl_env: MiniJinjaRenderer,
|
||||
}
|
||||
|
||||
#[actix_web::get("/accounts/{account_id}")]
|
||||
pub async fn account(tmpl_env: MiniJinjaRenderer,
|
||||
req: HttpRequest,
|
||||
service_factory: web::Data<ServicesFactory>) -> actix_web::Result<impl Responder> {
|
||||
pub async fn get_account(tmpl_env: MiniJinjaRenderer,
|
||||
req: HttpRequest,
|
||||
service_factory: web::Data<ServicesFactory>) -> actix_web::Result<impl Responder> {
|
||||
let path_event_type = req.match_info().get("account_id").unwrap();
|
||||
let account_id = AccountId::from_string(&path_event_type.to_string()).unwrap();
|
||||
let conn = service_factory.get_connection()?;
|
||||
|
||||
Reference in new issue
Block a user