diff options
author | Adam Carpenter <adam.carpenter@adp.com> | 2022-01-17 15:02:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 15:02:00 -0500 |
commit | 6e307700a5203f5b9fcc741f693fcacc7757414d (patch) | |
tree | fe7781e07a74e05a82ea3c1e19c389337fe8ac8c /angelsharkd/src/routes/extensions/mod.rs | |
parent | d3e1b697fec543e0197f1c549164c210504dde3b (diff) | |
parent | 579980ca75dfbc27639259c773dfc5fe1ec9e32a (diff) | |
download | altruistic-angelshark-master.tar.xz altruistic-angelshark-master.zip |
feat: support station busyout/release toggling via extension
Diffstat (limited to 'angelsharkd/src/routes/extensions/mod.rs')
-rw-r--r-- | angelsharkd/src/routes/extensions/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/angelsharkd/src/routes/extensions/mod.rs b/angelsharkd/src/routes/extensions/mod.rs index 54053af..a775880 100644 --- a/angelsharkd/src/routes/extensions/mod.rs +++ b/angelsharkd/src/routes/extensions/mod.rs @@ -1,6 +1,8 @@ use crate::config::Config; use warp::{path, Filter, Rejection, Reply}; +#[cfg(feature = "simple_busy")] +mod simple_busy; #[cfg(feature = "simple_deprov")] mod simple_deprov; #[cfg(feature = "simple_search")] @@ -26,6 +28,12 @@ pub fn filter(config: &Config) -> impl Filter<Extract = impl Reply, Error = Reje #[cfg(feature = "simple_deprov")] let filters = filters.or(simple_deprov::filter(config.runner.clone())); + #[cfg(feature = "simple_busy")] + let filters = filters + .or(simple_busy::busy_filter(config.runner.to_owned())) + .or(simple_busy::release_filter(config.runner.to_owned())) + .or(simple_busy::toggle_filter(config.runner.to_owned())); + path("extensions").and(filters) } |