summaryrefslogtreecommitdiffstats
path: root/rust/src/bin
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-11 14:49:25 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-11 14:49:25 -0700
commitb9b79a7b7385ba18654d51bc2ca1b5d07f191d0e (patch)
tree3308d41627f67ed5f988016671e57e9b47a992e2 /rust/src/bin
parent2aef3c1dbf75ae374862a12e6d6a680d9ce78720 (diff)
downloadfatcat-b9b79a7b7385ba18654d51bc2ca1b5d07f191d0e.tar.gz
fatcat-b9b79a7b7385ba18654d51bc2ca1b5d07f191d0e.zip
finish fatcat-api => fatcat-api-spec refactor
Diffstat (limited to 'rust/src/bin')
-rw-r--r--rust/src/bin/fatcatd.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/bin/fatcatd.rs b/rust/src/bin/fatcatd.rs
index 1e0c3e53..57b6a3da 100644
--- a/rust/src/bin/fatcatd.rs
+++ b/rust/src/bin/fatcatd.rs
@@ -6,7 +6,7 @@ extern crate diesel;
//extern crate dotenv;
extern crate error_chain;
extern crate fatcat;
-extern crate fatcat_api;
+extern crate fatcat_api_spec;
extern crate futures;
extern crate iron;
extern crate iron_slog;
@@ -42,7 +42,7 @@ fn main() {
let formatter = DefaultLogFormatter;
let server = fatcat::server().unwrap();
- let mut router = fatcat_api::router(server);
+ let mut router = fatcat_api_spec::router(server);
router.get("/", root_handler, "root-redirect");
router.get("/swagger-ui", swaggerui_handler, "swagger-ui-html");
@@ -79,7 +79,7 @@ fn main() {
let mut chain = Chain::new(LoggerMiddleware::new(router, logger, formatter));
// Auth stuff unused for now
- //chain.link_before(fatcat_api::server::ExtractAuthData);
+ //chain.link_before(fatcat_api_spec::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"));