diff options
author | fx <[email protected]> | 2023-10-15 16:26:16 +0200 |
---|---|---|
committer | fx <[email protected]> | 2023-10-15 16:26:16 +0200 |
commit | 912323d9e42a45e05fa34778dad75ced7b0096fc (patch) | |
tree | a9b3b725f14c397f3ef9981c2b92d52daca2a329 | |
parent | 82463cb3c3b107dbeed2b5f2cec0751bdae4b05d (diff) | |
download | webol-912323d9e42a45e05fa34778dad75ced7b0096fc.tar webol-912323d9e42a45e05fa34778dad75ced7b0096fc.tar.gz webol-912323d9e42a45e05fa34778dad75ced7b0096fc.zip |
added log for build test
-rw-r--r-- | src/routes/start.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes/start.rs b/src/routes/start.rs index 2e6a648..163d58c 100644 --- a/src/routes/start.rs +++ b/src/routes/start.rs | |||
@@ -12,6 +12,7 @@ use crate::db::Device; | |||
12 | use crate::error::WebolError; | 12 | use crate::error::WebolError; |
13 | 13 | ||
14 | pub async fn start(State(state): State<Arc<crate::AppState>>, headers: HeaderMap, Json(payload): Json<StartPayload>) -> Result<Json<Value>, WebolError> { | 14 | pub async fn start(State(state): State<Arc<crate::AppState>>, headers: HeaderMap, Json(payload): Json<StartPayload>) -> Result<Json<Value>, WebolError> { |
15 | info!("POST request"); | ||
15 | let secret = headers.get("authorization"); | 16 | let secret = headers.get("authorization"); |
16 | if auth(secret).map_err(WebolError::Auth)? { | 17 | if auth(secret).map_err(WebolError::Auth)? { |
17 | let device = sqlx::query_as!( | 18 | let device = sqlx::query_as!( |