Create handlers//handler.go using Gin’s *gin.Context.
Replace direct DB calls with service usage.
Create centralized router
internal/http/router.go registers all endpoints.
Add JSON response helpers
Add httputil for common responses and error mapping.
Acceptance Criteria
All handlers are Gin-based.
No direct DB imports in handlers.
Unified error/response format.
**Refactor handlers**
1. Create handlers/<feature>/handler.go using Gin’s *gin.Context.
2. Replace direct DB calls with service usage.
**Create centralized router**
- internal/http/router.go registers all endpoints.
**Add JSON response helpers**
- Add httputil for common responses and error mapping.
**Acceptance Criteria**
1. All handlers are Gin-based.
2. No direct DB imports in handlers.
3. Unified error/response format.
H3ALY
added this to the 🛠 In Progress project 2025-10-23 22:41:52 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Refactor handlers
Create centralized router
Add JSON response helpers
Acceptance Criteria