Skip to content

Commit

Permalink
no more test routes cuz i made register work :)
Browse files Browse the repository at this point in the history
  • Loading branch information
vxcall committed Sep 2, 2024
1 parent e4cbf7b commit fa002c0
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 87 deletions.
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ async fn main() -> Result<()> {
.wrap(Logger::default())
.configure(routes::auth_routes::config)
.configure(routes::user_routes::config)
.configure(routes::test_routes::config)
})
.bind((address, port))
.map_err(anyhow::Error::from)?
Expand Down
2 changes: 1 addition & 1 deletion src/routes/handlers/auth_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::collections::HashMap;
use crate::utils::{
api_response::{self, ApiResponse},
app_state::{self, AppState},
auth::get_user_from_email,
user::get_user_from_email,
global_variables::DYNAMO_DB_TABLE_NAME,
jwt::{add_to_blacklist, encode_jwt},
models::User,
Expand Down
1 change: 0 additions & 1 deletion src/routes/handlers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub mod auth_handlers;
pub mod test_handlers;
pub mod user_handlers;
73 changes: 0 additions & 73 deletions src/routes/handlers/test_handlers.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ pub mod handlers;
pub mod middlewares;

pub mod auth_routes;
pub mod test_routes;
pub mod user_routes;
9 changes: 0 additions & 9 deletions src/routes/test_routes.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod api_response;
pub mod app_state;
pub mod auth;
pub mod user;
pub mod environment_variables;
pub mod global_variables;
pub mod jwt;
Expand Down
File renamed without changes.

0 comments on commit fa002c0

Please sign in to comment.