build: scaffold axum api server entry

This commit is contained in:
2026-04-21 01:00:46 +08:00
parent b8df838eb2
commit 4b549ce6a7
9 changed files with 561 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
use axum::Router;
use crate::state::AppState;
// 统一由这里构造 Axum 路由树,后续再逐项挂接中间件与业务路由。
pub fn build_router(state: AppState) -> Router {
Router::new().with_state(state)
}