From 8738cf083caaf9d8ecb1918e14712f7b09f490a5 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sun, 15 Sep 2024 22:25:48 -0400 Subject: Move channel list into the `app.channels()` namespace. This is groundwork for a JSON-based API, after a conversation with Kit. --- src/index/routes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index/routes.rs') diff --git a/src/index/routes.rs b/src/index/routes.rs index 07b6001..2d77e5b 100644 --- a/src/index/routes.rs +++ b/src/index/routes.rs @@ -21,7 +21,7 @@ async fn index(State(app): State, login: Option) -> Result Result { - let channels = app.index().for_authenticated().await?; + let channels = app.channels().all().await?; Ok(templates::authenticated(login, &channels)) } -- cgit v1.2.3