Skip to main content

create_issue_write_routes

Function create_issue_write_routes 

Source
pub fn create_issue_write_routes(service: Arc<IssueService>) -> Router
Expand description

Create Axum router with only the write (mutation) endpoints for Issue.

These routes must NOT be publicly exposed. Wrap them with an auth middleware before nesting into the application router.

§This is unguarded generic CRUD, not a validated write path

These are plain create/update/patch/delete mutations over the entity row — they bypass all business invariants. If the module exposes a validated write service (e.g. a command router over its domain engine), serve THAT instead for any mutation that must respect domain rules.