mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-29 13:52:46 -07:00
feat: Implement .env file support (#618)
Co-authored-by: Jacob Marshall <me@jhqcat.com>
This commit is contained in:
committed by
GitHub
parent
8fcebae4a9
commit
67de777fd1
@@ -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())
|
||||
}
|
||||
Reference in New Issue
Block a user