avina-api 1.2.1

Rust API server for the LRZ-specific features of the Openstack-based LRZ Compute Cloud.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use actix_web::{Scope, web::scope};

mod server_state;
use server_state::server_states_scope;
mod server_consumption;
use server_consumption::server_consumption_scope;
pub(crate) mod server_cost;
use server_cost::server_cost_scope;

pub fn accounting_scope() -> Scope {
    scope("/accounting")
        .service(server_states_scope())
        .service(server_consumption_scope())
        .service(server_cost_scope())
}