Skip to main content

start_http_api

Function start_http_api 

Source
pub(crate) async fn start_http_api(
    db: Arc<LaminarDB>,
    registry: Arc<Registry>,
    config_path: PathBuf,
    config: ServerConfig,
) -> Result<(Arc<AppState>, JoinHandle<()>), ServerError>
Expand description

Start HTTP API server and return (shared state, join handle).