diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-03-23 19:06:43 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-03-23 20:01:54 -0400 |
| commit | 5e4e052c400bb88933125f3549cec6dc12a9d09b (patch) | |
| tree | 32ba0249d010d7706ba01464723f2f07a987266a /src/boot/routes/get.rs | |
| parent | f6191926ba94b8a1b303bca7c6996dce67781290 (diff) | |
Rename `login` to `user` throughout the server
Diffstat (limited to 'src/boot/routes/get.rs')
| -rw-r--r-- | src/boot/routes/get.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/routes/get.rs b/src/boot/routes/get.rs index c04c6b3..4873b7a 100644 --- a/src/boot/routes/get.rs +++ b/src/boot/routes/get.rs @@ -8,14 +8,14 @@ use crate::{app::App, boot::Snapshot, error::Internal, token::extract::Identity, pub async fn handler(State(app): State<App>, identity: Identity) -> Result<Response, Internal> { let snapshot = app.boot().snapshot().await?; Ok(Response { - login: identity.user, + user: identity.user, snapshot, }) } #[derive(serde::Serialize)] pub struct Response { - pub login: User, + pub user: User, #[serde(flatten)] pub snapshot: Snapshot, } |
