Created
October 4, 2021 13:46
-
-
Save mike820324/9d7a6a780555dbf8ed2e68ae9014d001 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async fn index(id: Identity) -> String { | |
// access request identity | |
if let Some(id) = id.identity() { | |
format!("Welcome! {}", id) | |
} else { | |
"Welcome Anonymous!".to_owned() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment