//! MyApp API server.

use tideway::{init_tracing, App};

mod routes;

#[tokio::main]
async fn main() -> Result<(), std::io::Error> {
    init_tracing();

    // tideway:app-builder:start
    let app = App::new()
        .register_module(routes::ApiModule)
        .register_module(routes::todo::TodoModule);
    // tideway:app-builder:end

    app.serve().await
}
