Function svc_assets::rest::server::rest_server
source · pub async fn rest_server(
config: Config,
shutdown_rx: Option<Receiver<()>>
) -> Result<(), ()>
Expand description
Starts the REST API server for this microservice
Example:
use svc_assets::rest::server::rest_server;
use svc_assets::Config;
async fn example() -> Result<(), tokio::task::JoinError> {
let config = Config::default();
tokio::spawn(rest_server(config, None)).await;
Ok(())
}