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