Skip to content

Commit

Permalink
some fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alw3ys committed Dec 15, 2023
1 parent 90a43b2 commit 9be8096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dosei/src/server/secret.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::schema::Secret;
use axum::extract::Query;
use axum::{Extension, Json};
use ring::aead::{
Expand All @@ -9,7 +10,6 @@ use serde::Deserialize;
use sqlx::{Pool, Postgres};
use std::collections::HashMap;
use std::sync::Arc;
use crate::schema::{Secret};

pub async fn api_get_envs(pool: Extension<Arc<Pool<Postgres>>>) -> Json<Vec<Secret>> {
let recs = sqlx::query_as!(Secret, "SELECT * from envs")
Expand All @@ -25,7 +25,7 @@ pub async fn api_set_envs(
Json(body): Json<HashMap<String, String>>,
) -> Json<HashMap<String, String>> {
println!("{:?}", body);
println!("{}", format!("{query:?}"));
println!("{query:?}");
let rec = HashMap::new();
Json(rec)
}
Expand Down

0 comments on commit 9be8096

Please sign in to comment.