diff options
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,6 +1,10 @@ use sqlx::sqlite::SqlitePool; -use crate::{channel::app::Channels, events::app::Broadcaster, login::app::Logins}; +use crate::{ + channel::app::Channels, + events::app::{Broadcaster, Events}, + login::app::Logins, +}; #[derive(Clone)] pub struct App { @@ -20,6 +24,10 @@ impl App { Logins::new(&self.db) } + pub const fn events(&self) -> Events { + Events::new(&self.db, &self.broadcaster) + } + pub const fn channels(&self) -> Channels { Channels::new(&self.db, &self.broadcaster) } |
