From 22348bfa35f009e62abe2f30863e0434079a1fe2 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 18 Sep 2024 22:49:38 -0400 Subject: 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 --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index cc49001..9d0606d 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -6,7 +6,7 @@ use clap::Parser; use sqlx::sqlite::{SqliteConnectOptions, SqlitePool, SqlitePoolOptions}; use tokio::net; -use crate::{app::App, channel, clock, events, index, login}; +use crate::{app::App, channel, clock, events, login}; pub type Result = std::result::Result; @@ -66,7 +66,7 @@ impl Args { fn routers() -> Router { [channel::router(), events::router(), login::router()] .into_iter() - .fold(index::routes::router(), Router::merge) + .fold(Router::default(), Router::merge) } fn started_msg(listener: &net::TcpListener) -> io::Result { -- cgit v1.2.3