diff options
author | Carpenter, Adam (CORP) <adam.carpenter@adp.com> | 2022-01-13 13:53:26 -0500 |
---|---|---|
committer | Carpenter, Adam (CORP) <adam.carpenter@adp.com> | 2022-01-14 11:44:38 -0500 |
commit | 41d2db1b63641d7d2cfc9db80e41e8437f6c96b3 (patch) | |
tree | ddc055ed8f3c7d12e0924b5f6653a5002bb83b3d /angelsharkd/src/routes/extensions/mod.rs | |
parent | d3e1b697fec543e0197f1c549164c210504dde3b (diff) | |
download | altruistic-angelshark-41d2db1b63641d7d2cfc9db80e41e8437f6c96b3.tar.xz altruistic-angelshark-41d2db1b63641d7d2cfc9db80e41e8437f6c96b3.zip |
feat: support station busyout/release toggling via extension
Introduces bulk station busyout/release toggle endpoints via the
`simple_busy` extension. Bumps `angelsharkd` version. Feature is
documented in README. Removes TODO in `simple_deprov` README.
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) } |