diff options
Diffstat (limited to 'src/handlers')
-rw-r--r-- | src/handlers/ships.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/ships.rs b/src/handlers/ships.rs index 42367ea..9d985ea 100644 --- a/src/handlers/ships.rs +++ b/src/handlers/ships.rs @@ -29,7 +29,7 @@ pub async fn new(Json(new_ship): Json<Ship>, state: Extension<Arc<State>>, AuthB Ok("OK") } -pub async fn delete(Path(shasum): Path<Sha256>, state: Extension<Arc<State>>) -> StringResult { +pub async fn delete(Path(shasum): Path<Sha256>, state: Extension<Arc<State>>, AuthBearer(token): AuthBearer) -> StringResult { check_bearer(token)?; let mut conn = state.conn.acquire().await?; |