diff --git a/Cargo.toml b/Cargo.toml index 0897af4..f679c34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,4 @@ edition = "2021" actix-web = "4" tera = "1.17.1" serde = { version = "1.0", features = ["derive"] } -reqwest = { version = "0.11",default-features = false, features = ["rustls-tls"] } +reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] } diff --git a/src/main.rs b/src/main.rs index 33c08c2..05f103d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ struct Template { #[derive(Deserialize)] struct Paste { - paste_id: String, + paste_id: Option, } @@ -20,15 +20,19 @@ async fn paste_render(data: Data