summaryrefslogtreecommitdiffstats
path: root/rust/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/bin')
-rw-r--r--rust/src/bin/fatcat-iron.rs8
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);