Expand description
§Announcement Routes Module
Defines and wires up routes for the /api/modules/{module_id}/announcements
endpoint group.
§Structure
post.rs
— POST handlers (e.g., create announcement)get.rs
— GET handlers (e.g., list announcements)put.rs
— PUT handlers (e.g., edit announcement)delete.rs
— DELETE handlers (e.g., remove announcement)common.rs
— shared helpers and utilities
§Usage
Call announcement_routes(app_state)
to get a configured Router
for announcements
to be mounted under a module in the main app.
Modules§
- common
- Announcement Request DTO
- delete
- Announcement deletion handler.
- get
- Get announcements handler.
- post
- Create announcement handler.
- put
- Edit announcement handler.
Functions§
- announcement_
routes - Builds the
/announcements
route group for a specific module.