implement empty endpoints with openapi
This commit is contained in:
14
Cargo.toml
14
Cargo.toml
@ -1,6 +1,18 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "user-server"
|
name = "test_exercise"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
axum = {version = "0.8.4", features = ["macros"]}
|
||||||
|
tokio = {version = "1.47.1", features = ["full"]}
|
||||||
|
utoipa = "5.4.0"
|
||||||
|
sqlx = {version = "0.6.0", features = ["runtime-tokio-native-tls","postgres"]}
|
||||||
|
config = "0.15.6"
|
||||||
|
utoipa-axum = {version = "0.2.0" }
|
||||||
|
utoipa-scalar = { version = "0.3", features = ["axum"] }
|
||||||
|
tracing = "0.1.41"
|
||||||
|
serde = "1.0.228"
|
||||||
|
tracing-subscriber = "0.3.20"
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
fn main() {
|
use test_exercise::router;
|
||||||
println!("Hello, world!");
|
|
||||||
|
#[tokio::main]
|
||||||
|
async fn main() {
|
||||||
|
router().await;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user