chore(server): scaffold axum com health endpoint e testes

This commit is contained in:
2026-08-05 20:23:09 -03:00
parent bfe12ba7ae
commit bc4de69ab9
11 changed files with 2013 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
pub mod health;
use axum::{routing::get, Router};
use tower_http::cors::CorsLayer;
use crate::state::SharedState;
pub fn router(state: SharedState) -> Router {
let api = Router::new()
.route("/health", get(health::health))
.with_state(state);
Router::new()
.nest("/api/v1", api)
.layer(CorsLayer::permissive())
}