diff options
Diffstat (limited to 'rust/src/bin/fatcat-iron.rs')
-rw-r--r-- | rust/src/bin/fatcat-iron.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/bin/fatcat-iron.rs b/rust/src/bin/fatcat-iron.rs index eed98b1d..0bed0fa2 100644 --- a/rust/src/bin/fatcat-iron.rs +++ b/rust/src/bin/fatcat-iron.rs @@ -8,10 +8,8 @@ extern crate futures; extern crate iron; extern crate iron_slog; extern crate swagger; -#[macro_use] -extern crate error_chain; -#[macro_use] -extern crate slog; +#[macro_use] extern crate error_chain; +#[macro_use] extern crate slog; extern crate slog_term; extern crate slog_async; @@ -50,6 +48,8 @@ fn main() { // for the purpose of this example, pretend we have authenticated a user chain.link_before(AllowAllMiddleware::new("cosmo")); + chain.link_after(fatcat::XClacksOverheadMiddleware); + if matches.is_present("https") { unimplemented!() } else { |