diff options
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]) -} - |
