diff --git a/bffhd/db/pass.rs b/bffhd/authentication/db.rs similarity index 100% rename from bffhd/db/pass.rs rename to bffhd/authentication/db.rs diff --git a/bffhd/authentication/mod.rs b/bffhd/authentication/mod.rs new file mode 100644 index 0000000..344bf1b --- /dev/null +++ b/bffhd/authentication/mod.rs @@ -0,0 +1,3 @@ + + +pub mod db; \ No newline at end of file diff --git a/bffhd/db.rs b/bffhd/db/mod.rs similarity index 98% rename from bffhd/db.rs rename to bffhd/db/mod.rs index 00070af..93139f7 100644 --- a/bffhd/db.rs +++ b/bffhd/db/mod.rs @@ -36,12 +36,6 @@ pub use hash::{ mod fix; pub use fix::LMDBorrow; -mod resources; -pub use resources::ResourceDB; - -mod pass; -pub use pass::PassDB; - use lmdb::Error; use rkyv::Deserialize; use rkyv::ser::serializers::AlignedSerializer; diff --git a/bffhd/lib.rs b/bffhd/lib.rs index 49cd862..2962eb9 100644 --- a/bffhd/lib.rs +++ b/bffhd/lib.rs @@ -18,6 +18,7 @@ pub mod error; pub mod permissions; pub mod users; +pub mod authentication; /// Resources pub mod resource; diff --git a/bffhd/db/resources.rs b/bffhd/resource/db.rs similarity index 100% rename from bffhd/db/resources.rs rename to bffhd/resource/db.rs diff --git a/bffhd/resource/mod.rs b/bffhd/resource/mod.rs index fd1e337..d91cbf8 100644 --- a/bffhd/resource/mod.rs +++ b/bffhd/resource/mod.rs @@ -10,6 +10,7 @@ use state::db::StateAccessor; pub mod state; pub mod claim; +pub mod db; /// A resource in BFFH has to contain several different parts;