Repository navigation
refactor: split uteke-server monolith into modules (#514) - #516
Merged
Merged
Conversation
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (3)
Review powered by cora-cli · BYOK · MIT |
Split 1,840-line main.rs into 4 focused files: - types.rs: request/response structs, helpers, constants - context.rs: ReqCtx, auth, CORS middleware - handlers.rs: route() dispatcher (all endpoint logic) - main.rs: CLI args, config loading, server startup Zero behavior change. All endpoints return identical responses. Closes #514
- handlers.rs: add serde::Deserialize for local struct derives - main.rs: add tiny_http::Server, remove unused Cursor import - main.rs: use imported Server instead of tiny_http::Server::http
- types.rs: remove unused Cursor import (clippy error) - context.rs: rustfmt function signature wrapping - main.rs: rustfmt module declaration order + trailing comma
ajianaz
force-pushed
the
refactor/server-modular-issue-514
branch
from
July 1, 2026 17:02
ea8df42 to
a4330ed
Compare
| } | ||
| }, | ||
| None => uteke.list( | ||
| req_data.tag.as_deref(), |
| }) | ||
| .collect(); | ||
|
|
||
| if let Some(id) = params.get("id") { |
| match uteke.delete_room(&room_id) { | ||
| Ok(()) => ctx.ok_response_for(req, &serde_json::json!({"deleted": room_id})), | ||
| Err(e) => { | ||
| let msg = format!("{e}"); |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…e-514 refactor: split uteke-server monolith into modules (#514)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Splits 1,840-line main.rs into 4 files: types.rs (282), context.rs (262), handlers.rs (863), main.rs (467). Zero behavior change. Closes #514.
v0.6.3 rebase: Rebased onto latest develop (includes Docker trixie-slim fix). Fixed clippy (unused Cursor import) and rustfmt.