pub fn create_issue_routes(service: Arc<IssueService>) -> RouterExpand description
Create Axum router with all 16 Backbone endpoints for Issue.
§Routes
| Method | Path | Description |
|---|---|---|
| GET | /issues | List with pagination |
| POST | /issues | Create new |
| GET | /issues/:id | Get by ID |
| PUT | /issues/:id | Full update |
| PATCH | /issues/:id | Partial update |
| DELETE | /issues/:id | Soft delete |
| POST | /issues/bulk | Bulk create |
| POST | /issues/upsert | Upsert |
| GET | /issues/trash | List deleted |
| POST | /issues/:id/restore | Restore |
| DELETE | /issues/empty | Empty trash |
| GET | /issues/:id/deleted | Get deleted by ID |
| DELETE | /issues/trash/:id | Permanent delete from trash |
| GET | /issues/count | Count active entities |
| GET | /issues/trash/count | Count deleted entities |
§Example
let service = Arc::new(IssueService::with_repository(repository));
let router = create_issue_routes(service);