diff options
| author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-15 15:16:42 -0700 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-15 15:19:39 -0700 | 
| commit | 2233970493bec6228046a75941a2e6a04500f924 (patch) | |
| tree | d80a0508032e08d9074ab1d56acee16d9de8b5c1 /rust/src/bin | |
| parent | 525f21c871f4947196dc8348019d941e84bf6e3c (diff) | |
| download | fatcat-2233970493bec6228046a75941a2e6a04500f924.tar.gz fatcat-2233970493bec6228046a75941a2e6a04500f924.zip | |
more cleanups
Diffstat (limited to 'rust/src/bin')
| -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 9f684b92..6e8c3765 100644 --- a/rust/src/bin/fatcat-iron.rs +++ b/rust/src/bin/fatcat-iron.rs @@ -9,7 +9,6 @@ extern crate fatcat_api;  extern crate futures;  extern crate iron;  extern crate iron_slog; -extern crate swagger;  #[macro_use]  extern crate error_chain;  #[macro_use] @@ -23,7 +22,7 @@ use iron::{Chain, Iron};  use iron_slog::{DefaultLogFormatter, LoggerMiddleware};  use slog::{Drain, Logger};  use std::env; -use swagger::auth::AllowAllMiddleware; +//use swagger::auth::AllowAllMiddleware;  /// Create custom server, wire it to the autogenerated router,  /// and pass it to the web server. @@ -47,10 +46,11 @@ fn main() {      let mut chain = Chain::new(LoggerMiddleware::new(router, logger, formatter)); -    chain.link_before(fatcat_api::server::ExtractAuthData); +    // Auth stuff unused for now +    //chain.link_before(fatcat_api::server::ExtractAuthData);      // add authentication middlewares into the chain here      // for the purpose of this example, pretend we have authenticated a user -    chain.link_before(AllowAllMiddleware::new("cosmo")); +    //chain.link_before(AllowAllMiddleware::new("cosmo"));      chain.link_after(fatcat::XClacksOverheadMiddleware); | 
