use axum::{Json, extract::Path}; use solarlib::ship::{Ship, Sha256}; use crate::errors::{JsonResult, StringResult}; pub async fn list() -> JsonResult>> { let mut result: Vec = Vec::new(); Ok(Json(result)) } pub async fn new(Json(new_ship): Json) -> StringResult { unimplemented!(); } pub async fn update(Json(new_ship): Json) -> StringResult { todo!(); } pub async fn delete(Path(shasum): Path) -> StringResult { todo!(); }