aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/src/bin/fatcat-auth.rs2
-rw-r--r--rust/src/bin/fatcat-export.rs2
-rw-r--r--rust/src/bin/fatcatd.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/bin/fatcat-auth.rs b/rust/src/bin/fatcat-auth.rs
index de9ade15..0b5c05b0 100644
--- a/rust/src/bin/fatcat-auth.rs
+++ b/rust/src/bin/fatcat-auth.rs
@@ -6,7 +6,7 @@ use fatcat::editing_crud::EditorCrud;
use fatcat::errors::Result;
use fatcat::identifiers::FatcatId;
use fatcat::{auth, server};
-use fatcat_api_spec::models::Editor;
+use fatcat_openapi::models::Editor;
use std::process;
use std::str::FromStr;
diff --git a/rust/src/bin/fatcat-export.rs b/rust/src/bin/fatcat-export.rs
index 6d2d396c..f52c7d17 100644
--- a/rust/src/bin/fatcat-export.rs
+++ b/rust/src/bin/fatcat-export.rs
@@ -16,7 +16,7 @@ use fatcat::entity_crud::*;
use fatcat::errors::Result;
use fatcat::identifiers::FatcatId;
use fatcat::server::{self, DbConn};
-use fatcat_api_spec::models::*;
+use fatcat_openapi::models::*;
use std::str::FromStr;
use uuid::Uuid;
diff --git a/rust/src/bin/fatcatd.rs b/rust/src/bin/fatcatd.rs
index 2c8614c2..67ec3123 100644
--- a/rust/src/bin/fatcatd.rs
+++ b/rust/src/bin/fatcatd.rs
@@ -104,7 +104,7 @@ fn main() -> Result<()> {
.keys()
.collect::<Vec<&String>>(),
);
- let mut router = fatcat_api_spec::router(server);
+ let mut router = fatcat_openapi::router(server);
router.get("/", root_handler, "root-redirect");
router.get("/swagger-ui", swaggerui_handler, "swagger-ui-html");
@@ -140,7 +140,7 @@ fn main() -> Result<()> {
let mut chain = Chain::new(LoggerMiddleware::new(router, logger, formatter));
// authentication
- chain.link_before(fatcat_api_spec::server::ExtractAuthData);
+ chain.link_before(fatcat_openapi::server::ExtractAuthData);
chain.link_before(fatcat::auth::MacaroonAuthMiddleware::new());
chain.link_after(XClacksOverheadMiddleware);