implement empty endpoints with openapi

This commit is contained in:
Akhmedov Khadgimurad
2025-11-06 18:53:37 +03:00
parent a0587512eb
commit ae1084c1c3
2 changed files with 18 additions and 3 deletions

View File

@ -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"

View File

@ -1,3 +1,6 @@
fn main() { use test_exercise::router;
println!("Hello, world!");
#[tokio::main]
async fn main() {
router().await;
} }