summary refs log tree commit diff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/mod.rs1
-rw-r--r--src/actions/page.rs12
2 files changed, 0 insertions, 13 deletions
diff --git a/src/actions/mod.rs b/src/actions/mod.rs
deleted file mode 100644
index 79d2861..0000000
--- a/src/actions/mod.rs
+++ /dev/null
@@ -1 +0,0 @@
-pub mod page;
diff --git a/src/actions/page.rs b/src/actions/page.rs
deleted file mode 100644
index 8d204f5..0000000
--- a/src/actions/page.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-use leptos::prelude::*;
-
-#[server]
-pub async fn get_page_content(url_path: String) -> Result<(), ServerFnError> {
-    use crate::data::content::ContentController;
-    let content_controller = expect_context::<ContentController>();
-    let content_snapshot = content_controller.get_snapshot().await;
-    let page_uuid = content_snapshot.page_paths.get(&url_path);
-    let page = content_snapshot.pages.get(&page_uuid.unwrap());
-
-    return Ok(())
-}