diff options
author | Cara Salter <cara@devcara.com> | 2022-06-10 12:44:46 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-06-10 12:45:02 -0400 |
commit | b4f44d8fa362ddf3f63ba01f03ea14b072b8e76c (patch) | |
tree | 9a3f9d8855e7e2d718805acca5461b7e83e17bd9 /src/handlers | |
parent | 986931c289f80c4d64ae2380ab40bcf6ba7cc75a (diff) | |
download | homeworld-b4f44d8fa362ddf3f63ba01f03ea14b072b8e76c.tar.gz homeworld-b4f44d8fa362ddf3f63ba01f03ea14b072b8e76c.zip |
Prepare for nix compilation
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?; |