diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-06-17 02:03:28 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-06-18 18:31:40 -0400 |
| commit | 5ed96f8e8b9d9f19ee249f5c73a5a21ef6bca09f (patch) | |
| tree | 75aa0287535506aa88f5f6d5b70ad5f99373320e /src/event/mod.rs | |
| parent | 23c2f6fbc07f25a11826892d783bddcc93550d25 (diff) | |
Reorganize and consolidate HTTP routes.
HTTP routes are now defined in a single, unified module, pulling them out of the topical modules they were formerly part of.
This is intended to improve the navigability of the codebase. Previously, finding the handler corresponding to a specific endpoint required prior familiarity, though in practice you could usually guess from topic area. Now, all routes are defined in `crate::routes`.
Other than changing visibility, I've avoided making changes to the handlers at the ends of those routes.
Diffstat (limited to 'src/event/mod.rs')
| -rw-r--r-- | src/event/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/event/mod.rs b/src/event/mod.rs index 1f2ec42..ff30dc7 100644 --- a/src/event/mod.rs +++ b/src/event/mod.rs @@ -1,18 +1,18 @@ -use crate::{channel, message, user}; -use axum::response::sse; -use axum::response::sse::KeepAlive; use std::time::Duration; +use axum::response::sse::{self, KeepAlive}; + +use crate::{channel, message, user}; + pub mod app; mod broadcaster; mod extract; pub mod repo; -mod routes; +pub mod routes; mod sequence; pub use self::{ broadcaster::Broadcaster, - routes::router, sequence::{Instant, Sequence, Sequenced}, }; |
