From b4f44d8fa362ddf3f63ba01f03ea14b072b8e76c Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Fri, 10 Jun 2022 12:44:46 -0400 Subject: Prepare for nix compilation --- src/handlers/ships.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/handlers/ships.rs') 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, state: Extension>, AuthB Ok("OK") } -pub async fn delete(Path(shasum): Path, state: Extension>) -> StringResult { +pub async fn delete(Path(shasum): Path, state: Extension>, AuthBearer(token): AuthBearer) -> StringResult { check_bearer(token)?; let mut conn = state.conn.acquire().await?; -- cgit v1.2.3