feat: Implement .env file support (#618)

Co-authored-by: Jacob Marshall <me@jhqcat.com>
This commit is contained in:
Marco Pasqualetti
2025-03-09 12:00:12 +01:00
committed by GitHub
parent 8fcebae4a9
commit 67de777fd1
24 changed files with 361 additions and 14 deletions
+7
View File
@@ -0,0 +1,7 @@
use std::env;
use tuono_lib::Request;
#[tuono_lib::api(GET)]
pub async fn test_env(_req: Request) -> String {
env::var("MY_TEST_KEY").unwrap_or("error".parse().unwrap())
}