From 2233970493bec6228046a75941a2e6a04500f924 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 15 May 2018 15:16:42 -0700 Subject: more cleanups --- rust/src/bin/fatcat-iron.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rust/src/bin') 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); -- cgit v1.2.3