From 8d412732dc094ead3c5cf86c005d187f9624fc65 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 1 Jul 2025 14:24:36 -0400 Subject: Replace `channel` with `conversation` throughout the API. This is a **breaking change** for essentially all clients. Thankfully, there's presently just the one, so we don't need to go to much effort to accommoate that; the client is modified in this commit to adapt, users can reload their client, and life will go on. --- src/routes.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/routes.rs') diff --git a/src/routes.rs b/src/routes.rs index ca4c60c..e38f744 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -29,13 +29,13 @@ pub fn routes(app: &App) -> Router { .route("/api/auth/login", post(user::handlers::login)) .route("/api/auth/logout", post(user::handlers::logout)) .route("/api/boot", get(boot::handlers::boot)) - .route("/api/channels", post(conversation::handlers::create)) + .route("/api/conversations", post(conversation::handlers::create)) .route( - "/api/channels/{channel}", + "/api/conversations/{conversation}", post(conversation::handlers::send), ) .route( - "/api/channels/{channel}", + "/api/conversations/{conversation}", delete(conversation::handlers::delete), ) .route("/api/events", get(event::handlers::stream)) -- cgit v1.2.3