forked from coracle/caravel
340 B
340 B
async fn main() -> Result<()>
- Configures logging
- Calls
create_poolto get aSqlitePool, then createsQuery,Command,Robot,Billing,Api, andInfra - Get an axum router from
api.router - Adds CORS middleware based on
origins - Calls
axum::servewith a listener - Spawns
infra.start - Spawns
billing.start