summaryrefslogtreecommitdiff
path: root/src/handlers
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-06-10 12:44:46 -0400
committerCara Salter <cara@devcara.com>2022-06-10 12:45:02 -0400
commitb4f44d8fa362ddf3f63ba01f03ea14b072b8e76c (patch)
tree9a3f9d8855e7e2d718805acca5461b7e83e17bd9 /src/handlers
parent986931c289f80c4d64ae2380ab40bcf6ba7cc75a (diff)
downloadhomeworld-b4f44d8fa362ddf3f63ba01f03ea14b072b8e76c.tar.gz
homeworld-b4f44d8fa362ddf3f63ba01f03ea14b072b8e76c.zip
Prepare for nix compilation
Diffstat (limited to 'src/handlers')
-rw-r--r--src/handlers/ships.rs2
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?;