Skip to content

Commit

Permalink
feat(#9): mods
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 1, 2024
1 parent 9953479 commit 20c811f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

use axum::routing::get;
use axum::Router;

mod home;
mod rs_err;
mod routes;
use crate::routes::home;

#[tokio::main]
async fn main() {
Expand Down
3 changes: 1 addition & 2 deletions src/home.rs → src/routes/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ use axum::http::StatusCode;
use axum::response::IntoResponse;
use axum::Json;
use tokio::fs;

use crate::rs_err::RsErr;
use crate::routes::rs_err::RsErr;

// @todo #9:25min Create unit tests for home.rs.
// We need to create a few unit testes for home endpoints,
Expand Down
2 changes: 2 additions & 0 deletions src/routes/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod home;
pub mod rs_err;
File renamed without changes.

0 comments on commit 20c811f

Please sign in to comment.