Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
NChitty committed Jan 10, 2024
1 parent dd8f892 commit 58a5c9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lambda/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::collections::HashMap;
use axum::{Router};
use axum::extract::{Query};
use axum::response::{Json};
use axum::extract::Query;
use axum::response::Json;
use axum::routing::get;
use axum::Router;
use lambda_http::{run, Error};
use serde::Deserialize;
use serde_json::{Value, json};
use serde_json::{json, Value};
use std::collections::HashMap;

mod recipe;

Expand All @@ -16,7 +16,7 @@ struct Root {

async fn root(query: Option<Query<Root>>) -> Json<Value> {
if let Some(query) = query {
return Json(json!({ "msg": "Hello ".to_string() + &query.0.name + "!" }))
return Json(json!({ "msg": "Hello ".to_string() + &query.0.name + "!" }));
}
Json(json!({ "msg": "Hello world!" }))
}
Expand Down

0 comments on commit 58a5c9b

Please sign in to comment.