aboutsummaryrefslogtreecommitdiff
path: root/server/src/api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/api.rs')
-rw-r--r--server/src/api.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/server/src/api.rs b/server/src/api.rs
index 9d16433..d83d8e3 100644
--- a/server/src/api.rs
+++ b/server/src/api.rs
@@ -3,9 +3,8 @@
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2026 metamuffin <metamuffin.org>
*/
-use super::ui::error::MyResult;
-use crate::request_info::RequestInfo;
-use rocket::{get, response::Redirect, serde::json::Json};
+
+use rocket::{get, response::Redirect};
#[get("/api")]
pub fn r_api_root() -> Redirect {
@@ -37,10 +36,3 @@ pub fn r_version() -> &'static str {
// Either::Right(s)
// }
// }
-
-#[get("/nodes_modified?<since>")]
-pub fn r_nodes_modified_since(ri: RequestInfo<'_>, since: u64) -> MyResult<Json<Vec<String>>> {
- // let nodes = get_nodes_modified_since(&session.0, since)?;
- // Ok(Json(nodes))
- todo!()
-}