This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use axum::{response::Json, routing::get, Router}; | |
use serde_json::{json, Value}; | |
async fn greet() -> Json<Value> { | |
json!({ "msg": "Hello, world!" }).into() | |
} | |
#[tokio::main] | |
async fn main() { | |
tracing_subscriber::fmt() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit class FSharpisms[+A](val a : A) extends AnyVal { | |
def |> [B](f: A => B) = f(a) | |
} |