This commit is contained in:
Adam 2024-01-06 04:35:02 -05:00
parent b9c37e1678
commit a3687c62ff

View file

@ -9,7 +9,7 @@ pub struct ArticleData {
pub content: String,
}
#[server(Slingshot, "/api", "Cbor")]
#[server(Slingshot)]
pub async fn slingshot() -> Result<ArticleData, ServerFnError> {
let data = ArticleData {
content_type: String::from("Blog"),