puerto 0.18.0

Puerto — Rust full-stack DDD framework CLI. Scaffolds Clean Architecture projects with auto-wired DI, SQLx support, and zero manual wiring. Formerly puerto-framework.
1
2
3
4
5
6
7
8
9
10
//! Yours: `puerto new` writes this file once and no generator touches it again.
//!
//! `generated/bootstrap.rs` hands every route — the API, the Swagger UI, the health probes — to
//! `configure` last. Add middleware (`routes.with(…)`) or routes of your own (`routes.at(…)`) here.

use poem::{Endpoint, Route};

pub fn configure(routes: Route) -> impl Endpoint {
    routes
}