diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-18 22:49:38 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-20 16:42:44 -0400 |
| commit | 22348bfa35f009e62abe2f30863e0434079a1fe2 (patch) | |
| tree | c5b5b5e660a1ee2a05785f4669102c1023b6e7b0 /src/app.rs | |
| parent | aafdeb9ffaf9a993ca4462b3422667e04469b2e3 (diff) | |
Remove the HTML client, and expose a JSON API.
This API structure fell out of a conversation with Kit. Described loosely:
kit: ok
kit: Here's what I'm picturing in a client
kit: list channels, make-new-channel, zero to one active channels, post-to-active.
kit: login/sign-up, logout
owen: you will likely also want "am I logged in" here
kit: sure, whoami
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -2,7 +2,6 @@ use sqlx::sqlite::SqlitePool; use crate::{ channel::app::{Broadcaster, Channels}, - index::app::Index, login::app::Logins, }; @@ -20,10 +19,6 @@ impl App { } impl App { - pub const fn index(&self) -> Index { - Index::new(&self.db) - } - pub const fn logins(&self) -> Logins { Logins::new(&self.db) } |
