diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-10-27 17:41:22 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-10-28 01:42:29 -0400 |
| commit | f305e487d619f1d993d11d728c8cf7261bf3b371 (patch) | |
| tree | 46ab6203babd5b93dcce00a0b7af7ae86dc0945e /src/ui/handlers | |
| parent | 6de7402a002791c6216b12a40e74af9c8ab82c02 (diff) | |
Convert `Invites` into a freestanding component.
Diffstat (limited to 'src/ui/handlers')
| -rw-r--r-- | src/ui/handlers/invite.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/handlers/invite.rs b/src/ui/handlers/invite.rs index 0f9580a..edd6dc1 100644 --- a/src/ui/handlers/invite.rs +++ b/src/ui/handlers/invite.rs @@ -4,9 +4,9 @@ use axum::{ }; use crate::{ - app::App, error::Internal, invite, + invite::app::Invites, ui::{ assets::{Asset, Assets}, error::NotFound, @@ -14,10 +14,10 @@ use crate::{ }; pub async fn handler( - State(app): State<App>, + State(invites): State<Invites>, Path(invite): Path<invite::Id>, ) -> Result<Asset, Error> { - app.invites() + invites .get(&invite) .await .map_err(Error::internal)? |
