diff options
| author | Daniel Hader <[email protected]> | 2026-05-11 19:28:00 -0500 |
|---|---|---|
| committer | Daniel Hader <[email protected]> | 2026-05-11 19:28:00 -0500 |
| commit | 36fad793c3be58b220ae319a45c8cd8afbae09fa (patch) | |
| tree | 0f072c9f3dd45b4295ded00d8a7f2c318238b688 /src/routes/problems.rs | |
| parent | a005add5513182abb0b1230cf514c7a45b290e4b (diff) | |
user route and database pooling using r2d2
Diffstat (limited to 'src/routes/problems.rs')
| -rw-r--r-- | src/routes/problems.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/routes/problems.rs b/src/routes/problems.rs deleted file mode 100644 index caeb808..0000000 --- a/src/routes/problems.rs +++ /dev/null @@ -1,17 +0,0 @@ -use axum::response::Json; -use serde::Serialize; - -#[derive(Serialize)] -pub struct Problem { - title: String, - description: String, -} - -pub async fn get_problems() -> Json<Vec<Problem>> { - let problem = Problem { - title: "test problem".into(), - description: "the description of a test problem".into(), - }; - Json(vec![problem]) -} - |
