diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2025-08-13 17:42:42 +0100 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2025-08-13 17:43:23 +0100 |
| commit | 6495038aba28c332050768cecf062418a25d5a96 (patch) | |
| tree | 97debc923ef76051ad669a432b128265a3975173 /schist_backend/src/routes/category.rs | |
| parent | ee3cd780e21260257b401c3f5cbababd9e27a15a (diff) | |
remove schist_backend
Diffstat (limited to 'schist_backend/src/routes/category.rs')
| -rw-r--r-- | schist_backend/src/routes/category.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/schist_backend/src/routes/category.rs b/schist_backend/src/routes/category.rs deleted file mode 100644 index b2412ac..0000000 --- a/schist_backend/src/routes/category.rs +++ /dev/null @@ -1,16 +0,0 @@ -use rocket::get; -use rocket::http::Status; -use rocket::serde::json::Json; -use schist_models::category::Category; -use schist_queries::categories::get_all_categories as get_all_categories_query; - -use crate::databases::UserDataDb; - -#[get("/category")] -pub async fn get_all_categories(user_data_db: UserDataDb) -> Result<Json<Vec<Category>>, Status> { - user_data_db - .run(get_all_categories_query) - .await - .map(Json) - .map_err(|_| Status { code: 500 }) -} |
