forked from coracle/caravel
9 lines
268 B
Markdown
9 lines
268 B
Markdown
# `async fn main() -> Result<()>`
|
|
|
|
- Configures logging
|
|
- Creates instances of `Repo`, `Robot`, `Billing`, `Api`, and `Infra`
|
|
- Spawns `infra.start`
|
|
- Get an axum router from `api.router`
|
|
- Adds CORS middleware based on `origins`
|
|
- Calls `axum::serve` with a listener
|