Skip to main content

start_server

Function start_server 

Source
pub async fn start_server(router: Router) -> Result<()>
Expand description

Boots the HTTP server for router.

The listen address is the server.bind IP joined with server.port from config/<env>.yml (the environment comes from crate::Environment::get_env). When no config file is present the defaults 0.0.0.0:3000 are used.