(svc service.PostService, intSvc service.InteractiveService)
| 15 | } |
| 16 | |
| 17 | func NewPostHandler(svc service.PostService, intSvc service.InteractiveService) *PostHandler { |
| 18 | return &PostHandler{ |
| 19 | svc: svc, |
| 20 | intSvc: intSvc, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func (ph *PostHandler) RegisterRoutes(server *gin.Engine) { |
| 25 | postGroup := server.Group("/api/posts") |