From fa098217f1f18abdb36ab851b9968ab77e9e25c5 Mon Sep 17 00:00:00 2001 From: Mika Date: Wed, 2 Apr 2025 21:23:19 +0200 Subject: [PATCH] renamed from change to update in PUT endpoints --- crates/backend/src/controller/class.rs | 2 +- crates/backend/src/controller/group.rs | 2 +- crates/backend/src/controller/project.rs | 2 +- crates/backend/src/controller/template.rs | 2 +- crates/backend/src/controller/user.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/backend/src/controller/class.rs b/crates/backend/src/controller/class.rs index d6d11dd..826ac35 100644 --- a/crates/backend/src/controller/class.rs +++ b/crates/backend/src/controller/class.rs @@ -23,7 +23,7 @@ async fn create_class() -> impl Responder { } #[put("")] -async fn change_class() -> impl Responder { +async fn update_class() -> impl Responder { "" } diff --git a/crates/backend/src/controller/group.rs b/crates/backend/src/controller/group.rs index 11e7da3..7d00ea2 100644 --- a/crates/backend/src/controller/group.rs +++ b/crates/backend/src/controller/group.rs @@ -23,7 +23,7 @@ async fn create_group() -> impl Responder { } #[put("")] -async fn change_group() -> impl Responder { +async fn update_group() -> impl Responder { "" } diff --git a/crates/backend/src/controller/project.rs b/crates/backend/src/controller/project.rs index 28f7ad0..d82aa16 100644 --- a/crates/backend/src/controller/project.rs +++ b/crates/backend/src/controller/project.rs @@ -55,7 +55,7 @@ async fn create_project( } #[put("")] -async fn change_project( +async fn update_project( db: web::Data, update_project_struct: web::Json, ) -> Result, ApiError> { diff --git a/crates/backend/src/controller/template.rs b/crates/backend/src/controller/template.rs index aeaaaf2..6b6dc19 100644 --- a/crates/backend/src/controller/template.rs +++ b/crates/backend/src/controller/template.rs @@ -23,7 +23,7 @@ async fn create_template() -> impl Responder { } #[put("")] -async fn change_template() -> impl Responder { +async fn update_template() -> impl Responder { "" } diff --git a/crates/backend/src/controller/user.rs b/crates/backend/src/controller/user.rs index 8758a9f..480a0de 100644 --- a/crates/backend/src/controller/user.rs +++ b/crates/backend/src/controller/user.rs @@ -23,7 +23,7 @@ async fn create_user() -> impl Responder { } #[put("")] -async fn change_user() -> impl Responder { +async fn update_user() -> impl Responder { "" }