mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
13 lines
323 B
Rust
13 lines
323 B
Rust
use jsonrpsee::types::Params;
|
|
|
|
use crate::{definitions::network::StaticRoute, state::RpcState};
|
|
|
|
use super::ApiError;
|
|
|
|
pub fn get_static_routes(_: Params, state: &RpcState) -> Result<Vec<StaticRoute>, ApiError> {
|
|
Ok(state
|
|
.config_manager
|
|
.get_pending_config()
|
|
.network
|
|
.static_routes)
|
|
}
|