Refactor routes into functional groupings #12
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/peach-workspace#12
Loading…
Reference in New Issue
No description provided.
Delete Branch "routes-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR refactors routes into functional groupings, inspired by the architecture of Delta (https://github.com/revoltchat/delta/tree/master/src/routes/channels) and Plume (https://github.com/Plume-org/Plume).
json_api.rs, context.rs and forms.rs were removed, and these parts are combined into files along with the routes they are used by.
as discussed on the call, this is just a first pass, revise as inspired.
some outstanding things I'm aware of:
@notplants
Thanks for the PR! This is already looking so much neater and easier to navigate.
I'll work on this and push commits to this PR.
Agreed. I can always do that when I start working on the new templates :)
Looking good. I just made 3 commits to carry this a bit further forward:
Cleaned-up the comments a bit. Lots of work still to be done but we can focus on this at a later stage. For now, we can make our lives easier by ensuring that all new code additions are thoroughly documented. I really like
cargo doc --no-deps --open
for this kind of work...it allows me to quickly see where the gaps are.Added a few more section headers for
src/routes/settings/network.rs
. I think we could eventually improve the section names so that they refer to functional grouping and not routes.Removed lockfiles for two crates
Updated the main lockfile