diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-27 08:01:41 +0100 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-27 08:02:56 +0100 |
commit | 9dd126957d74ec064ff1844e3f4403e068117e11 (patch) | |
tree | 4dc5abd6eb32f18926f17802ea7a779596b16a43 /src/main.rs | |
parent | c622eab39ac7dd9f794b5d60eb937e29c9b3bd6e (diff) |
last minute changes
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index fab6dd5..2f3449d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ mod api; mod auth; mod database; -mod extractors; mod doc; +mod extractors; use actix_web::web::Redirect; use actix_web::{web, App, HttpServer, Responder}; @@ -33,9 +33,7 @@ async fn main() -> std::io::Result<()> { let db = Arc::new(db_raw); /* Get jwt secret from env */ - let jwt_secret = env::var("SECRET") - .expect("environment variable SECRET is *probably not setted up!!") - .to_string(); + let jwt_secret: String = env!("SECRET").to_owned(); /* Application data struct */ let app_state = AppState { |