Files
2026-04-01 16:42:14 -07:00

340 B

async fn main() -> Result<()>

  • Configures logging
  • Calls create_pool to get a SqlitePool, then creates Query, Command, Robot, Billing, Api, and Infra
  • Get an axum router from api.router
  • Adds CORS middleware based on origins
  • Calls axum::serve with a listener
  • Spawns infra.start
  • Spawns billing.start