move-handlers-to-dir #2

Merged
jgtaylor merged 2 commits from move-handlers-to-dir into main 2026-03-14 19:12:10 +00:00
Owner

The commit 2bf77ee updates the author entity in SeaORM:

  • Uses an Enum for the Status field, removing the enum_name attribute.
  • Changes the id field to be auto-incrementing and not null.
  • Makes email a required, unique, indexed field (was previously Option).
  • Removes custom column_type and select_as attributes from display_name.
  • Changes created_at and updated_at fields from Option to DateTimeWithTimeZone and Option, respectively.
  • Cleans up unnecessary attributes and comments.

The commit b765dbf reorganizes the codebase:

  • by moving all handler functions for authors, books, and posts into a new handlers directory.
  • It creates separate modules for each handler type and updates main.rs to use these modules, simplifying and cleaning up the main file.
  • The routing logic is updated to reference the new handler locations.
The commit 2bf77ee updates the author entity in SeaORM: - Uses an Enum for the Status field, removing the enum_name attribute. - Changes the id field to be auto-incrementing and not null. - Makes email a required, unique, indexed field (was previously Option<String>). - Removes custom column_type and select_as attributes from display_name. - Changes created_at and updated_at fields from Option<String> to DateTimeWithTimeZone and Option<DateTimeWithTimeZone>, respectively. - Cleans up unnecessary attributes and comments. The commit b765dbf reorganizes the codebase: - by moving all handler functions for authors, books, and posts into a new `handlers` directory. - It creates separate modules for each handler type and updates `main.rs` to use these modules, simplifying and cleaning up the main file. - The routing logic is updated to reference the new handler locations.
Author
Owner

lg

lg
jgtaylor deleted branch move-handlers-to-dir 2026-03-14 19:12:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jgtaylor/rust-blog!2
No description provided.