clean up example

This commit is contained in:
Greg Johnston 2024-06-07 16:50:16 -04:00
parent 25c66a4624
commit 7c24b7482d
2 changed files with 0 additions and 3 deletions

View File

@ -12,7 +12,6 @@ console_error_panic_hook = "0.1"
futures = "0.3"
http = "1.0"
leptos = { path = "../../leptos", features = ["tracing"] }
server_fn = { path = "../../server_fn", features = ["serde-lite"] }
leptos_axum = { path = "../../integrations/axum", optional = true }
log = "0.4"
simple_logger = "4.0"

View File

@ -2,7 +2,6 @@ use crate::error_template::ErrorTemplate;
use leptos::either::Either;
use leptos::prelude::*;
use serde::{Deserialize, Serialize};
use server_fn::codec::SerdeLite;
use server_fn::ServerFnError;
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
@ -75,7 +74,6 @@ pub async fn add_todo(title: String) -> Result<(), ServerFnError> {
}
}
#[server(output = SerdeLite)]
pub async fn delete_todo(id: u16) -> Result<(), ServerFnError> {
use self::ssr::*;
let mut conn = db().await?;