Networking Layer
Our networking layer has the following file structure:
networking
└── actix_server
├── Cargo.toml
└── src
├── api
│ ├── auth
│ │ ├── login.rs
│ │ ├── logout.rs
│ │ └── mod.rs
│ ├── mod.rs
│ └── users
│ ├── create.rs
│ └── mod.rs
└── main.rs
Again, we link all the files together and define the following api endpoint factories. For the users factory we have the definition below:
// nanoservices/auth/networking/actix_server/
// src/api/users/mod.rs
pub mod create;
use actix_web::web::ServiceConfig;
pub fn users_factory...